]> git.baikalelectronics.ru Git - kernel.git/commit
x86, smpboot: Remove pointless preempt_disable() in native_smp_prepare_cpus()
authorThomas Gleixner <tglx@linutronix.de>
Fri, 5 Dec 2014 08:48:29 +0000 (08:48 +0000)
committerThomas Gleixner <tglx@linutronix.de>
Tue, 16 Dec 2014 13:08:14 +0000 (14:08 +0100)
commitffef999c546c27bbc6fa97231037f6d6cfaf8198
treef48cae7b41ac77b5966f614393f4fca5c6a4f9e3
parentf7257aafedc3ae112beaf362f8eec72cfc232b6e
x86, smpboot: Remove pointless preempt_disable() in native_smp_prepare_cpus()

There is no reason to keep preemption disabled in this function.

We only have two other threads live: kthreadd and idle. Neither of
them is going to preempt. But that preempt_disable forces all the code
inside to do GFP_ATOMIC allocations which is just insane.

Remove it.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Tested-by: Borislav Petkov <bp@alien8.de>
Cc: Jiang Liu <jiang.liu@linux.intel.com>
Cc: Joerg Roedel <joro@8bytes.org>
Cc: x86@kernel.org
Link: http://lkml.kernel.org/r/20141205084147.153643952@linutronix.de
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
arch/x86/kernel/smpboot.c