]> Pileus Git - ~andy/linux/commitdiff
Remove unused PROC_CHANGE_PENALTY constant
authorStephen Boyd <sboyd@codeaurora.org>
Wed, 25 May 2011 00:13:08 +0000 (17:13 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 25 May 2011 15:39:43 +0000 (08:39 -0700)
This constant hasn't been used since before the git era (2.6.12) and thus
can be dropped.

Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
Cc: Russell King <rmk@arm.linux.org.uk>
Cc: Richard Weinberger <richard@nod.at>
Cc: Hirokazu Takata <takata@linux-m32r.org>
Cc: Kyle McMartin <kyle@mcmartin.ca>
Cc: Richard Henderson <rth@twiddle.net>
Cc: Ivan Kokshaysky <ink@jurassic.park.msu.ru>
Cc: Matt Turner <mattst88@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
arch/alpha/include/asm/smp.h
arch/arm/include/asm/smp.h
arch/m32r/include/asm/smp.h
arch/parisc/include/asm/smp.h
arch/um/include/asm/smp.h

index 3f390e8cc0b33fdee5070297d99d30e102f90557..c46e714aa3e024ccd04ec7cf11207ba0a1243b13 100644 (file)
@@ -39,8 +39,6 @@ struct cpuinfo_alpha {
 
 extern struct cpuinfo_alpha cpu_data[NR_CPUS];
 
-#define PROC_CHANGE_PENALTY     20
-
 #define hard_smp_processor_id()        __hard_smp_processor_id()
 #define raw_smp_processor_id() (current_thread_info()->cpu)
 
index a87664f54f93480b702afe8c52d838052217bc58..d2b514fd76f429afc53044bcce274fa3eda8c137 100644 (file)
 
 #define raw_smp_processor_id() (current_thread_info()->cpu)
 
-/*
- * at the moment, there's not a big penalty for changing CPUs
- * (the >big< penalty is running SMP in the first place)
- */
-#define PROC_CHANGE_PENALTY            15
-
 struct seq_file;
 
 /*
index e67ded1aab9100df5d478573945166b70a7b4105..8accc1bb026323552b534b70c51e28fb82cd19e9 100644 (file)
@@ -94,8 +94,6 @@ extern void arch_send_call_function_ipi_mask(const struct cpumask *mask);
 
 #define NO_PROC_ID (0xff)      /* No processor magic marker */
 
-#define PROC_CHANGE_PENALTY    (15)    /* Schedule penalty */
-
 /*
  * M32R-mp IPI
  */
index 2e73623feb6ba28d4590eafc02b573f8acb7c2c4..e8f8037d872bc91c794f50ba5fd7a0f8eb996232 100644 (file)
@@ -33,15 +33,6 @@ extern void arch_send_call_function_ipi_mask(const struct cpumask *mask);
 
 #endif /* !ASSEMBLY */
 
-/*
- *     This magic constant controls our willingness to transfer
- *      a process across CPUs. Such a transfer incurs cache and tlb
- *      misses. The current value is inherited from i386. Still needs
- *      to be tuned for parisc.
- */
-#define PROC_CHANGE_PENALTY    15              /* Schedule penalty */
-
 #define raw_smp_processor_id() (current_thread_info()->cpu)
 
 #else /* CONFIG_SMP */
index f27a963131741ba935f80ec424c9b4c413ae63d4..4a4b09d4f36648c0bf85724aa9533d9890403a07 100644 (file)
@@ -11,7 +11,6 @@
 
 #define cpu_logical_map(n) (n)
 #define cpu_number_map(n) (n)
-#define PROC_CHANGE_PENALTY    15 /* Pick a number, any number */
 extern int hard_smp_processor_id(void);
 #define NO_PROC_ID -1