Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 366145
b: refs/heads/master
c: aba92c9
h: refs/heads/master
i:
  366143: 3b986dd
v: v3
  • Loading branch information
Thomas Gleixner committed Apr 8, 2013
1 parent d852831 commit c701f87
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 19 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 0dc8153cfebac68c9523b8852b14f10b31209f08
refs/heads/master: aba92c9e2cf3042bf6efc68fa2e4235ba01bf499
1 change: 1 addition & 0 deletions trunk/arch/unicore32/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ config UNICORE32
select ARCH_WANT_FRAME_POINTERS
select GENERIC_IOMAP
select MODULES_USE_ELF_REL
select GENERIC_IDLE_LOOP
help
UniCore-32 is 32-bit Instruction Set Architecture,
including a series of low-power-consumption RISC chip
Expand Down
21 changes: 3 additions & 18 deletions trunk/arch/unicore32/kernel/process.c
Original file line number Diff line number Diff line change
Expand Up @@ -45,25 +45,10 @@ static const char * const processor_modes[] = {
"UK18", "UK19", "UK1A", "EXTN", "UK1C", "UK1D", "UK1E", "SUSR"
};

void cpu_idle(void)
void arch_cpu_idle(void)
{
/* endless idle loop with no priority at all */
while (1) {
tick_nohz_idle_enter();
rcu_idle_enter();
while (!need_resched()) {
local_irq_disable();
stop_critical_timings();
cpu_do_idle();
local_irq_enable();
start_critical_timings();
}
rcu_idle_exit();
tick_nohz_idle_exit();
preempt_enable_no_resched();
schedule();
preempt_disable();
}
cpu_do_idle();
local_irq_enable();
}

static char reboot_mode = 'h';
Expand Down

0 comments on commit c701f87

Please sign in to comment.