]> git.baikalelectronics.ru Git - kernel.git/commit
sh: resume_kernel fix for kernel oops built with CONFIG_BKL_PREEMPT=y.
authorCarmelo Amoroso <carmelo.amoroso@st.com>
Fri, 5 Sep 2008 05:42:16 +0000 (14:42 +0900)
committerPaul Mundt <lethal@linux-sh.org>
Fri, 5 Sep 2008 05:42:16 +0000 (14:42 +0900)
commite9bc09751ba1e94d6db1f4414344ac231b530d55
treeda216c011548831a3448da414732e94de81a6c43
parentea2800b70bdd5892c5da052eed0d32ab5b2e58b5
sh: resume_kernel fix for kernel oops built with CONFIG_BKL_PREEMPT=y.

This patch fixes a problem within the SH implementation of resume_kernel code,
that implements in assembly the bulk of preempt_schedule_irq function without
taking care of the extra code needed to handle the BKL preemptible.

The patch basically consists of removing this asm code and calling the common
C implementation (see kernel/sched.c) as other archs do.

Another change is the missing 'cli' macro invocation at the beginning of
the resume_kernel.

Signed-off-by: Giuseppe Cavallaro <peppe.cavallaro@st.com>
Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
arch/sh/kernel/entry-common.S