Commit 818b667ba57f68bf1e7240fa441dda0b11e6b944

Authored by Stephen Boyd
Committed by Linus Torvalds
1 parent 21b7d815b2

Remove unused PROC_CHANGE_PENALTY constant

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>

Showing 5 changed files with 0 additions and 20 deletions Side-by-side Diff

arch/alpha/include/asm/smp.h
... ... @@ -39,8 +39,6 @@
39 39  
40 40 extern struct cpuinfo_alpha cpu_data[NR_CPUS];
41 41  
42   -#define PROC_CHANGE_PENALTY 20
43   -
44 42 #define hard_smp_processor_id() __hard_smp_processor_id()
45 43 #define raw_smp_processor_id() (current_thread_info()->cpu)
46 44  
arch/arm/include/asm/smp.h
... ... @@ -20,12 +20,6 @@
20 20  
21 21 #define raw_smp_processor_id() (current_thread_info()->cpu)
22 22  
23   -/*
24   - * at the moment, there's not a big penalty for changing CPUs
25   - * (the >big< penalty is running SMP in the first place)
26   - */
27   -#define PROC_CHANGE_PENALTY 15
28   -
29 23 struct seq_file;
30 24  
31 25 /*
arch/m32r/include/asm/smp.h
... ... @@ -94,8 +94,6 @@
94 94  
95 95 #define NO_PROC_ID (0xff) /* No processor magic marker */
96 96  
97   -#define PROC_CHANGE_PENALTY (15) /* Schedule penalty */
98   -
99 97 /*
100 98 * M32R-mp IPI
101 99 */
arch/parisc/include/asm/smp.h
... ... @@ -33,15 +33,6 @@
33 33  
34 34 #endif /* !ASSEMBLY */
35 35  
36   -/*
37   - * This magic constant controls our willingness to transfer
38   - * a process across CPUs. Such a transfer incurs cache and tlb
39   - * misses. The current value is inherited from i386. Still needs
40   - * to be tuned for parisc.
41   - */
42   -
43   -#define PROC_CHANGE_PENALTY 15 /* Schedule penalty */
44   -
45 36 #define raw_smp_processor_id() (current_thread_info()->cpu)
46 37  
47 38 #else /* CONFIG_SMP */
arch/um/include/asm/smp.h
... ... @@ -11,7 +11,6 @@
11 11  
12 12 #define cpu_logical_map(n) (n)
13 13 #define cpu_number_map(n) (n)
14   -#define PROC_CHANGE_PENALTY 15 /* Pick a number, any number */
15 14 extern int hard_smp_processor_id(void);
16 15 #define NO_PROC_ID -1
17 16