forked from len0rd/rockbox
SH1: Tiny optimisation of the thread scheduler.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7406 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
a2224dfbfa
commit
6d54d6c088
1 changed files with 4 additions and 3 deletions
|
@ -20,6 +20,7 @@
|
|||
#include <stdbool.h>
|
||||
#include "thread.h"
|
||||
#include "panic.h"
|
||||
#include "system.h"
|
||||
#include "kernel.h"
|
||||
#include "cpu.h"
|
||||
|
||||
|
@ -215,7 +216,7 @@ void switch_thread(void)
|
|||
#ifdef CPU_COLDFIRE
|
||||
asm volatile ("stop #0x2000");
|
||||
#elif CONFIG_CPU == SH7034
|
||||
SBYCR &= 0x7F;
|
||||
and_b(0x7F, &SBYCR);
|
||||
asm volatile ("sleep");
|
||||
#elif CONFIG_CPU == TCC730
|
||||
/* Sleep mode is triggered by the SYS instr on CalmRisc16.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue