diff options
| -rw-r--r-- | arch/x86/kernel/apic/apic.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/arch/x86/kernel/apic/apic.c b/arch/x86/kernel/apic/apic.c index eebee4cbc14b..7834f73efbf1 100644 --- a/arch/x86/kernel/apic/apic.c +++ b/arch/x86/kernel/apic/apic.c | |||
| @@ -597,9 +597,13 @@ static const struct x86_cpu_id deadline_match[] = { | |||
| 597 | 597 | ||
| 598 | static void apic_check_deadline_errata(void) | 598 | static void apic_check_deadline_errata(void) |
| 599 | { | 599 | { |
| 600 | const struct x86_cpu_id *m = x86_match_cpu(deadline_match); | 600 | const struct x86_cpu_id *m; |
| 601 | u32 rev; | 601 | u32 rev; |
| 602 | 602 | ||
| 603 | if (!boot_cpu_has(X86_FEATURE_TSC_DEADLINE_TIMER)) | ||
| 604 | return; | ||
| 605 | |||
| 606 | m = x86_match_cpu(deadline_match); | ||
| 603 | if (!m) | 607 | if (!m) |
| 604 | return; | 608 | return; |
| 605 | 609 | ||
