Skip to content
Commit 087d990b authored by Ralf Baechle's avatar Ralf Baechle
Browse files

MIPS: Idle: Break r4k_wait into two functions and fix it.



local_irq_enable() may expand into very different code, so it rather should
stay in C.  Also this keeps the assembler code size constant which keeps
the rollback code simple.  So it's best to split r4k_wait into two parts,
one C and one assembler.

Finally add the local_irq_enable() to r4k_wait to ensure the WAIT
instruction in __r4k_wait() will work properly.

Signed-off-by: default avatarRalf Baechle <ralf@linux-mips.org>
parent f94d9a8e
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