Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 309537
b: refs/heads/master
c: 3732106
h: refs/heads/master
i:
  309535: 5fe74cb
v: v3
  • Loading branch information
Sam Ravnborg authored and David S. Miller committed May 28, 2012
1 parent 34f094c commit efac410
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 31 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: 805918f80fb11d95e9b117a6faf5a6a7a8339e49
refs/heads/master: 3732106a1a565a592966290fbcef322db9933f91
35 changes: 5 additions & 30 deletions trunk/arch/sparc/kernel/process_32.c
Original file line number Diff line number Diff line change
Expand Up @@ -65,50 +65,25 @@ extern void fpsave(unsigned long *, unsigned long *, void *, unsigned long *);
struct task_struct *last_task_used_math = NULL;
struct thread_info *current_set[NR_CPUS];

#ifndef CONFIG_SMP

/*
* the idle loop on a Sparc... ;)
*/
void cpu_idle(void)
{
/* endless idle loop with no priority at all */
for (;;) {
if (pm_idle) {
while (!need_resched())
(*pm_idle)();
} else {
while (!need_resched())
cpu_relax();
}
schedule_preempt_disabled();
}
}

#else
set_thread_flag(TIF_POLLING_NRFLAG);

/* This is being executed in task 0 'user space'. */
void cpu_idle(void)
{
set_thread_flag(TIF_POLLING_NRFLAG);
/* endless idle loop with no priority at all */
while(1) {
#ifdef CONFIG_SPARC_LEON
if (pm_idle) {
while (!need_resched())
for (;;) {
while (!need_resched()) {
if (pm_idle)
(*pm_idle)();
} else
#endif
{
while (!need_resched())
else
cpu_relax();
}
schedule_preempt_disabled();
}
}

#endif

/* XXX cli/sti -> local_irq_xxx here, check this works once SMP is fixed. */
void machine_halt(void)
{
Expand Down

0 comments on commit efac410

Please sign in to comment.