summaryrefslogtreecommitdiffstats
path: root/arch/x86/kernel/irqinit.c
diff options
context:
space:
mode:
authorBorislav Petkov <bp@suse.de>2017-06-20 11:31:54 +0200
committerThomas Gleixner <tglx@linutronix.de>2017-06-20 12:23:26 +0200
commit803ff8a7a6c9f89945edc07c5e969c2e11e2209b (patch)
tree3474961e1e432f213a773bf073ec12d0a741e9aa /arch/x86/kernel/irqinit.c
parentb1b4f2fe68393f80480545b5e67a50f7bda8e9a7 (diff)
downloadlinux-803ff8a7a6c9f89945edc07c5e969c2e11e2209b.tar.bz2
x86/hpet: Do not use smp_processor_id() in preemptible code
When hpet=force is supplied on the kernel command line and the HPET supports the Legacy Replacement Interrupt Route option (HPET_ID_LEGSUP), the legacy interrupts init code uses the boot CPU's mask initially by calling smp_processor_id() assuming that it is running on the BSP. It does run on the BSP but the code region is preemptible and the preemption check fires. Simply use the BSP's id directly to avoid the warning. Signed-off-by: Borislav Petkov <bp@suse.de> Link: http://lkml.kernel.org/r/20170620093154.18472-1-bp@alien8.de Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'arch/x86/kernel/irqinit.c')
0 files changed, 0 insertions, 0 deletions