summaryrefslogtreecommitdiff
path: root/arch/x86/machine/lapic.c
diff options
context:
space:
mode:
authorRichard Braun <rbraun@sceen.net>2017-05-16 01:57:46 +0200
committerRichard Braun <rbraun@sceen.net>2017-05-16 02:00:19 +0200
commit3716fa334dc17b6e3bd03493429877fceb606a1c (patch)
tree8fceda580e21f3390a3d2291385697090163d63e /arch/x86/machine/lapic.c
parentfca151d3e8b551483cc3f5d43394a1d90b79ee34 (diff)
x86/lapic: reduce timer calibration delay
Now that cpu_delay uses the timestamp counter, local APIC timer calibration gets more precise, and doesn't require such a long interval.
Diffstat (limited to 'arch/x86/machine/lapic.c')
-rw-r--r--arch/x86/machine/lapic.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/arch/x86/machine/lapic.c b/arch/x86/machine/lapic.c
index 89affc5..a978da1 100644
--- a/arch/x86/machine/lapic.c
+++ b/arch/x86/machine/lapic.c
@@ -55,13 +55,9 @@
#define LAPIC_TIMER_COUNT_MAX 0xffffffff
/*
- * The value of this duration (in microseconds) must be carefully set.
- * It must divide a second (1000000) without loss of precision. It is
- * recommended to use either 1s or 100ms. The former gives the best
- * results, as it renders the time used for accounting operations
- * negligible, but is slightly longer.
+ * Delay used to calibrate the local APIC timer, in microseconds.
*/
-#define LAPIC_TIMER_CAL_DELAY 1000000
+#define LAPIC_TIMER_CAL_DELAY 100000
/*
* Spurious-interrupt vector register bits.