acpi_timer.c (93bd1f7e31458d0157c80b6ed23c7a8f3ca304ac) | acpi_timer.c (d141bf6e2f0e4b070fde03e440a42aaa203f7922) |
---|---|
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: --- 313 unchanged lines hidden (view full) --- 322 if (delta > max) 323 max = delta; 324 else if (delta < min) 325 min = delta; 326 last = this; 327 } 328 intr_restore(s); 329 | 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: --- 313 unchanged lines hidden (view full) --- 322 if (delta > max) 323 max = delta; 324 else if (delta < min) 325 min = delta; 326 last = this; 327 } 328 intr_restore(s); 329 |
330 if (max - min > 2) | 330 delta = max - min; 331 if (delta > 2 && vm_guest == VM_GUEST_NO) |
331 n = 0; 332 else if (min < 0 || max == 0) 333 n = 0; 334 else 335 n = 1; 336 if (bootverbose) | 332 n = 0; 333 else if (min < 0 || max == 0) 334 n = 0; 335 else 336 n = 1; 337 if (bootverbose) |
337 printf(" %d/%d", n, max-min); | 338 printf(" %d/%d", n, delta); |
338 339 return (n); 340} 341#undef N 342 343/* 344 * Test harness for verifying ACPI timer behaviour. 345 * Boot with debug.acpi.timer_test set to invoke this. --- 27 unchanged lines hidden --- | 339 340 return (n); 341} 342#undef N 343 344/* 345 * Test harness for verifying ACPI timer behaviour. 346 * Boot with debug.acpi.timer_test set to invoke this. --- 27 unchanged lines hidden --- |