summaryrefslogtreecommitdiffstats
path: root/arch/mips/kernel/idle.c
Commit message (Collapse)AuthorAgeFilesLines
* MIPS: Alchemy: fix wait functionManuel Lauss2013-06-101-6/+7
| | | | | | | | | | | | | | | | Only an interrupt can wake the core from 'wait', enable interrupts locally before executing 'wait'. [ralf@linux-mips.org: This leave the race between an interrupt that's setting TIF_NEED_RESCHEd and entering the WAIT status. but at least it's going to bring Alchemy back from the dead, so I'm going to apply this patch.] Signed-off-by: Manuel Lauss <manuel.lauss@gmail.com> Cc: Linux-MIPS <linux-mips@linux-mips.org> Cc: Maciej W. Rozycki <macro@linux-mips.org> Patchwork: https://patchwork.linux-mips.org/patch/5408/ Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
* MIPS: Idle: Break r4k_wait into two functions and fix it.Ralf Baechle2013-05-221-0/+6
| | | | | | | | | | | | 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: Ralf Baechle <ralf@linux-mips.org>
* MIPS: Idle: Consolidate all declarations in <asm/idle.h>.Ralf Baechle2013-05-221-2/+1
| | | | Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
* MIPS: Idle: Don't call local_irq_disable() in cpu_wait() implementations.Ralf Baechle2013-05-221-3/+0
| | | | | | The generic idle loop has already disabled interrupts so this is redundant. Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
* MIPS: Idle: Re-enable irqs at the end of r3081, au1k and loongson2 cpu_wait.Ralf Baechle2013-05-221-0/+2
| | | | | | | | | | Without this, the WARN_ON_ONCE(irqs_disabled()); in the idle loop will be triggered. Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
* MIPS: Idle: Make call of function pointer readable.Ralf Baechle2013-05-221-1/+1
| | | | Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
* MIPS: Idle: Consistently reformat inline assembler.Ralf Baechle2013-05-221-18/+21
| | | | Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
* MIPS: Idle: cleaup SMTC idle hook as per Linux coding style.Ralf Baechle2013-05-221-2/+7
| | | | Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
* MIPS: Consolidate idle loop / WAIT instruction support in a single file.Ralf Baechle2013-05-221-0/+232
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
OpenPOWER on IntegriCloud