Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 366125
b: refs/heads/master
c: e46746c
h: refs/heads/master
i:
  366123: 68158ad
v: v3
  • Loading branch information
Thomas Gleixner committed Apr 8, 2013
1 parent 95a0d46 commit 3153b02
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 28 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: 25d67f860f3a29d216f8206092a284cacbc6127e
refs/heads/master: e46746cd5542b74f1e34bb1b8a997c5c0a6e69ea
1 change: 1 addition & 0 deletions trunk/arch/c6x/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ config C6X
select OF_EARLY_FLATTREE
select GENERIC_CLOCKEVENTS
select MODULES_USE_ELF_RELA
select GENERIC_IDLE_LOOP

config MMU
def_bool n
Expand Down
28 changes: 1 addition & 27 deletions trunk/arch/c6x/kernel/process.c
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ extern asmlinkage void ret_from_kernel_thread(void);
void (*pm_power_off)(void);
EXPORT_SYMBOL(pm_power_off);

static void c6x_idle(void)
void arch_cpu_idle(void)
{
unsigned long tmp;

Expand All @@ -49,32 +49,6 @@ static void c6x_idle(void)
: "=b"(tmp));
}

/*
* The idle loop for C64x
*/
void cpu_idle(void)
{
/* endless idle loop with no priority at all */
while (1) {
tick_nohz_idle_enter();
rcu_idle_enter();
while (1) {
local_irq_disable();
if (need_resched()) {
local_irq_enable();
break;
}
c6x_idle(); /* enables local irqs */
}
rcu_idle_exit();
tick_nohz_idle_exit();

preempt_enable_no_resched();
schedule();
preempt_disable();
}
}

static void halt_loop(void)
{
printk(KERN_EMERG "System Halted, OK to turn off power\n");
Expand Down

0 comments on commit 3153b02

Please sign in to comment.