Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 21513
b: refs/heads/master
c: 1bd0cd7
h: refs/heads/master
i:
  21511: 5d322ed
v: v3
  • Loading branch information
David S. Miller committed Mar 20, 2006
1 parent 7e9ce38 commit 14a2f46
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 12 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: 8ca2557c48000daa8183b07d83f582a597705ebe
refs/heads/master: 1bd0cd74d102a527b2a72907698d73fad4b82cbd
10 changes: 2 additions & 8 deletions trunk/arch/sparc64/kernel/process.c
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,8 @@ void default_idle(void)
{
}



#ifndef CONFIG_SMP

/*
Expand Down Expand Up @@ -104,19 +106,11 @@ void cpu_idle(void)

while(1) {
if (need_resched()) {
cpuinfo->idle_volume = 0;
preempt_enable_no_resched();
schedule();
preempt_disable();
check_pgt_cache();
}
cpuinfo->idle_volume++;

/* The store ordering is so that IRQ handlers on
* other cpus see our increasing idleness for the buddy
* redistribution algorithm. -DaveM
*/
membar_storeload_storestore();
}
}

Expand Down
2 changes: 0 additions & 2 deletions trunk/arch/sparc64/kernel/smp.c
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,6 @@ void __init smp_store_cpu_info(int id)
cpu_data(id).clock_tick = prom_getintdefault(cpu_node,
"clock-frequency", 0);

cpu_data(id).idle_volume = 1;

def = ((tlb_type == hypervisor) ? (8 * 1024) : (16 * 1024));
cpu_data(id).dcache_size = prom_getintdefault(cpu_node, "dcache-size",
def);
Expand Down
2 changes: 1 addition & 1 deletion trunk/include/asm-sparc64/cpudata.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ typedef struct {
unsigned int __softirq_pending; /* must be 1st, see rtrap.S */
unsigned int multiplier;
unsigned int counter;
unsigned int idle_volume;
unsigned int __pad1;
unsigned long clock_tick; /* %tick's per second */
unsigned long udelay_val;

Expand Down

0 comments on commit 14a2f46

Please sign in to comment.