]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
sched/core, sched/x86: Kill thread_info::saved_preempt_count
authorPeter Zijlstra <peterz@infradead.org>
Mon, 28 Sep 2015 16:11:18 +0000 (18:11 +0200)
committerIngo Molnar <mingo@kernel.org>
Tue, 6 Oct 2015 15:08:18 +0000 (17:08 +0200)
commitd87b7a33794f52226131f93cbc9db03274d9fecf
treee1ccd2b403395dc1e9c7e5f3ba2c04960026af39
parentda7142e2ed735e1c1bef5a757dc55de35c65fbd6
sched/core, sched/x86: Kill thread_info::saved_preempt_count

With the introduction of the context switch preempt_count invariant,
and the demise of PREEMPT_ACTIVE, its pointless to save/restore the
per-cpu preemption count, it must always be 2.

Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Reviewed-by: Thomas Gleixner <tglx@linutronix.de>
Reviewed-by: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Mike Galbraith <efault@gmx.de>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: linux-kernel@vger.kernel.org
Signed-off-by: Ingo Molnar <mingo@kernel.org>
arch/x86/include/asm/preempt.h
arch/x86/include/asm/thread_info.h
arch/x86/kernel/process_32.c
arch/x86/kernel/process_64.c