[SPARC64]: Kill cpudata->idle_volume.
authorDavid S. Miller <davem@sunset.davemloft.net>
Tue, 21 Feb 2006 23:41:01 +0000 (15:41 -0800)
committerDavid S. Miller <davem@sunset.davemloft.net>
Mon, 20 Mar 2006 09:13:51 +0000 (01:13 -0800)
Set, but never used.

We used to use this for dynamic IRQ retargetting, but that
code died a long time ago.

Signed-off-by: David S. Miller <davem@davemloft.net>
arch/sparc64/kernel/process.c
arch/sparc64/kernel/smp.c
include/asm-sparc64/cpudata.h

index d00cb7ad89b9608b59771560fa927f57ead2f608..1ab8283efc4c63dae8320fc1e62cdb2fa4feddef 100644 (file)
@@ -56,6 +56,8 @@ void default_idle(void)
 {
 }
 
+
+
 #ifndef CONFIG_SMP
 
 /*
@@ -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();
        }
 }
 
index 356d423ae14d5b90bf1cdc4435436db24ea19120..0cd9b16612e7c0c8ca841a45dd2ec470ac9bd76a 100644 (file)
@@ -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);
index 84656f1895cda6598ca08550d1e593c168edc914..c66a81bbc84dcc78026341f817a965f9156b6eab 100644 (file)
@@ -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;