acpi_timer.c (a8b89dff6ac026e60983824889d3666842ff409b) | acpi_timer.c (3e68d2c52b4e4b0aafce2c7f6bcb8f063c6a8d55) |
---|---|
1/*- 2 * Copyright (c) 2000, 2001 Michael Smith 3 * Copyright (c) 2000 BSDi 4 * All rights reserved. 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions 8 * are met: --- 356 unchanged lines hidden (view full) --- 365 acpi_timer_frequency = freq; 366 acpi_timer_timecounter.tc_frequency = acpi_timer_frequency; 367 } 368 369 return (error); 370} 371 372SYSCTL_PROC(_machdep, OID_AUTO, acpi_timer_freq, | 1/*- 2 * Copyright (c) 2000, 2001 Michael Smith 3 * Copyright (c) 2000 BSDi 4 * All rights reserved. 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions 8 * are met: --- 356 unchanged lines hidden (view full) --- 365 acpi_timer_frequency = freq; 366 acpi_timer_timecounter.tc_frequency = acpi_timer_frequency; 367 } 368 369 return (error); 370} 371 372SYSCTL_PROC(_machdep, OID_AUTO, acpi_timer_freq, |
373 CTLTYPE_INT | CTLFLAG_RW | CTLFLAG_NEEDGIANT, 0, sizeof(u_int), | 373 CTLTYPE_INT | CTLFLAG_RW | CTLFLAG_MPSAFE, 0, 0, |
374 acpi_timer_sysctl_freq, "I", 375 "ACPI timer frequency"); 376 377/* 378 * Some ACPI timers are known or believed to suffer from implementation 379 * problems which can lead to erroneous values being read. This function 380 * tests for consistent results from the timer and returns 1 if it believes 381 * the timer is consistent, otherwise it returns 0. --- 99 unchanged lines hidden --- | 374 acpi_timer_sysctl_freq, "I", 375 "ACPI timer frequency"); 376 377/* 378 * Some ACPI timers are known or believed to suffer from implementation 379 * problems which can lead to erroneous values being read. This function 380 * tests for consistent results from the timer and returns 1 if it believes 381 * the timer is consistent, otherwise it returns 0. --- 99 unchanged lines hidden --- |