Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 366119
b: refs/heads/master
c: fa35e42
h: refs/heads/master
i:
  366117: 924eb20
  366115: 3f0ed6d
  366111: 7c12818
v: v3
  • Loading branch information
Thomas Gleixner committed Apr 8, 2013
1 parent 0e8e181 commit d52838f
Show file tree
Hide file tree
Showing 4 changed files with 4 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: d166991234347215dc23fc9dc15a63a83a1a54e1
refs/heads/master: fa35e42a00ec0120db2b5128753206efb288e789
1 change: 1 addition & 0 deletions trunk/arch/arc/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ config ARC
select GENERIC_ATOMIC64
select GENERIC_CLOCKEVENTS
select GENERIC_FIND_FIRST_BIT
select GENERIC_IDLE_LOOP
# for now, we don't need GENERIC_IRQ_PROBE, CONFIG_GENERIC_IRQ_CHIP
select GENERIC_IRQ_SHOW
select GENERIC_KERNEL_EXECVE
Expand Down
27 changes: 1 addition & 26 deletions trunk/arch/arc/kernel/process.c
Original file line number Diff line number Diff line change
Expand Up @@ -41,37 +41,12 @@ SYSCALL_DEFINE0(arc_gettls)
return task_thread_info(current)->thr_ptr;
}

static inline void arch_idle(void)
void arch_cpu_idle(void)
{
/* sleep, but enable all interrupts before committing */
__asm__("sleep 0x3");
}

void cpu_idle(void)
{
/* Since we SLEEP in idle loop, TIF_POLLING_NRFLAG can't be set */

/* endless idle loop with no priority at all */
while (1) {
tick_nohz_idle_enter();
rcu_idle_enter();

doze:
local_irq_disable();
if (!need_resched()) {
arch_idle();
goto doze;
} else {
local_irq_enable();
}

rcu_idle_exit();
tick_nohz_idle_exit();

schedule_preempt_disabled();
}
}

asmlinkage void ret_from_fork(void);

/* Layout of Child kernel mode stack as setup at the end of this function is
Expand Down
2 changes: 1 addition & 1 deletion trunk/arch/arc/kernel/smp.c
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ void __cpuinit start_kernel_secondary(void)

local_irq_enable();
preempt_disable();
cpu_idle();
cpu_startup_entry(CPUHP_ONLINE);
}

/*
Expand Down

0 comments on commit d52838f

Please sign in to comment.