Эх сурвалжийг харах

[SPARC64]: Kill cpudata->idle_volume.

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>
David S. Miller 19 жил өмнө
parent
commit
1bd0cd74d1

+ 2 - 8
arch/sparc64/kernel/process.c

@@ -56,6 +56,8 @@ void default_idle(void)
 {
 {
 }
 }
 
 
+
+
 #ifndef CONFIG_SMP
 #ifndef CONFIG_SMP
 
 
 /*
 /*
@@ -104,19 +106,11 @@ void cpu_idle(void)
 
 
 	while(1) {
 	while(1) {
 		if (need_resched()) {
 		if (need_resched()) {
-			cpuinfo->idle_volume = 0;
 			preempt_enable_no_resched();
 			preempt_enable_no_resched();
 			schedule();
 			schedule();
 			preempt_disable();
 			preempt_disable();
 			check_pgt_cache();
 			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();
 	}
 	}
 }
 }
 
 

+ 0 - 2
arch/sparc64/kernel/smp.c

@@ -88,8 +88,6 @@ void __init smp_store_cpu_info(int id)
 	cpu_data(id).clock_tick = prom_getintdefault(cpu_node,
 	cpu_data(id).clock_tick = prom_getintdefault(cpu_node,
 						     "clock-frequency", 0);
 						     "clock-frequency", 0);
 
 
-	cpu_data(id).idle_volume		= 1;
-
 	def = ((tlb_type == hypervisor) ? (8 * 1024) : (16 * 1024));
 	def = ((tlb_type == hypervisor) ? (8 * 1024) : (16 * 1024));
 	cpu_data(id).dcache_size = prom_getintdefault(cpu_node, "dcache-size",
 	cpu_data(id).dcache_size = prom_getintdefault(cpu_node, "dcache-size",
 						      def);
 						      def);

+ 1 - 1
include/asm-sparc64/cpudata.h

@@ -19,7 +19,7 @@ typedef struct {
 	unsigned int	__softirq_pending; /* must be 1st, see rtrap.S */
 	unsigned int	__softirq_pending; /* must be 1st, see rtrap.S */
 	unsigned int	multiplier;
 	unsigned int	multiplier;
 	unsigned int	counter;
 	unsigned int	counter;
-	unsigned int	idle_volume;
+	unsigned int	__pad1;
 	unsigned long	clock_tick;	/* %tick's per second */
 	unsigned long	clock_tick;	/* %tick's per second */
 	unsigned long	udelay_val;
 	unsigned long	udelay_val;