Skip to content
Commit 323b8c41 authored by Carmelo Amoroso's avatar Carmelo Amoroso Committed by Paul Mundt
Browse files

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: default avatarGiuseppe Cavallaro <peppe.cavallaro@st.com>
Signed-off-by: default avatarCarmelo Amoroso <carmelo.amoroso@st.com>
Signed-off-by: default avatarPaul Mundt <lethal@linux-sh.org>
parent 3c31bf73
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment