aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/kernel/apic/apic.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/x86/kernel/apic/apic.c')
-rw-r--r--arch/x86/kernel/apic/apic.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/x86/kernel/apic/apic.c b/arch/x86/kernel/apic/apic.c
index 177aa8ef2afa..85be316665b4 100644
--- a/arch/x86/kernel/apic/apic.c
+++ b/arch/x86/kernel/apic/apic.c
@@ -1464,7 +1464,8 @@ static void apic_pending_intr_clear(void)
1464 if (queued) { 1464 if (queued) {
1465 if (boot_cpu_has(X86_FEATURE_TSC) && cpu_khz) { 1465 if (boot_cpu_has(X86_FEATURE_TSC) && cpu_khz) {
1466 ntsc = rdtsc(); 1466 ntsc = rdtsc();
1467 max_loops = (cpu_khz << 10) - (ntsc - tsc); 1467 max_loops = (long long)cpu_khz << 10;
1468 max_loops -= ntsc - tsc;
1468 } else { 1469 } else {
1469 max_loops--; 1470 max_loops--;
1470 } 1471 }