Sync with sys/i386/isa/clock.c revision 1.132.
This commit is contained in:
parent
8aef41e249
commit
482f0be026
@ -34,7 +34,7 @@
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* from: @(#)clock.c 7.2 (Berkeley) 5/12/91
|
||||
* $Id: clock.c,v 1.66 1999/01/28 11:36:22 kato Exp $
|
||||
* $Id: clock.c,v 1.67 1999/04/21 12:14:37 kato Exp $
|
||||
*/
|
||||
|
||||
/*
|
||||
@ -1466,6 +1466,7 @@ sysctl_machdep_i8254_freq SYSCTL_HANDLER_ARGS
|
||||
return (EBUSY); /* too much trouble to handle */
|
||||
set_timer_freq(freq, hz);
|
||||
i8254_timecounter.tc_frequency = freq;
|
||||
update_timecounter(&i8254_timecounter);
|
||||
}
|
||||
return (error);
|
||||
}
|
||||
@ -1486,6 +1487,7 @@ sysctl_machdep_tsc_freq SYSCTL_HANDLER_ARGS
|
||||
if (error == 0 && req->newptr != NULL) {
|
||||
tsc_freq = freq;
|
||||
tsc_timecounter.tc_frequency = tsc_freq;
|
||||
update_timecounter(&tsc_timecounter);
|
||||
}
|
||||
return (error);
|
||||
}
|
||||
|
@ -34,7 +34,7 @@
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* from: @(#)clock.c 7.2 (Berkeley) 5/12/91
|
||||
* $Id: clock.c,v 1.66 1999/01/28 11:36:22 kato Exp $
|
||||
* $Id: clock.c,v 1.67 1999/04/21 12:14:37 kato Exp $
|
||||
*/
|
||||
|
||||
/*
|
||||
@ -1466,6 +1466,7 @@ sysctl_machdep_i8254_freq SYSCTL_HANDLER_ARGS
|
||||
return (EBUSY); /* too much trouble to handle */
|
||||
set_timer_freq(freq, hz);
|
||||
i8254_timecounter.tc_frequency = freq;
|
||||
update_timecounter(&i8254_timecounter);
|
||||
}
|
||||
return (error);
|
||||
}
|
||||
@ -1486,6 +1487,7 @@ sysctl_machdep_tsc_freq SYSCTL_HANDLER_ARGS
|
||||
if (error == 0 && req->newptr != NULL) {
|
||||
tsc_freq = freq;
|
||||
tsc_timecounter.tc_frequency = tsc_freq;
|
||||
update_timecounter(&tsc_timecounter);
|
||||
}
|
||||
return (error);
|
||||
}
|
||||
|
@ -34,7 +34,7 @@
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* from: @(#)clock.c 7.2 (Berkeley) 5/12/91
|
||||
* $Id: clock.c,v 1.66 1999/01/28 11:36:22 kato Exp $
|
||||
* $Id: clock.c,v 1.67 1999/04/21 12:14:37 kato Exp $
|
||||
*/
|
||||
|
||||
/*
|
||||
@ -1466,6 +1466,7 @@ sysctl_machdep_i8254_freq SYSCTL_HANDLER_ARGS
|
||||
return (EBUSY); /* too much trouble to handle */
|
||||
set_timer_freq(freq, hz);
|
||||
i8254_timecounter.tc_frequency = freq;
|
||||
update_timecounter(&i8254_timecounter);
|
||||
}
|
||||
return (error);
|
||||
}
|
||||
@ -1486,6 +1487,7 @@ sysctl_machdep_tsc_freq SYSCTL_HANDLER_ARGS
|
||||
if (error == 0 && req->newptr != NULL) {
|
||||
tsc_freq = freq;
|
||||
tsc_timecounter.tc_frequency = tsc_freq;
|
||||
update_timecounter(&tsc_timecounter);
|
||||
}
|
||||
return (error);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user