Skip to content

Commit 58e6360

Browse files
committed
xen: remove stray preempt_disable() from PV AP startup code
In cpu_bringup() there is a call of preempt_disable() without a paired preempt_enable(). This is not needed as interrupts are off initially. Additionally this will result in early boot messages like: BUG: scheduling while atomic: swapper/1/0/0x00000002 Signed-off-by: Juergen Gross <jgross@suse.com> Link: https://lore.kernel.org/r/20210825113158.11716-1-jgross@suse.com Signed-off-by: Juergen Gross <jgross@suse.com>
1 parent f956c1b commit 58e6360

1 file changed

Lines changed: 0 additions & 1 deletion

File tree

arch/x86/xen/smp_pv.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,6 @@ static void cpu_bringup(void)
6464
cr4_init();
6565
cpu_init();
6666
touch_softlockup_watchdog();
67-
preempt_disable();
6867

6968
/* PVH runs in ring 0 and allows us to do native syscalls. Yay! */
7069
if (!xen_feature(XENFEAT_supervisor_mode_kernel)) {

0 commit comments

Comments
 (0)