diff options
author | Richard Kennedy <richard@rsk.demon.co.uk> | 2010-08-09 20:20:34 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2010-08-09 23:45:06 -0400 |
commit | 878ae1274944908e1863b06b03a2c94907afaa20 (patch) | |
tree | 35030101311d4c3e092e59da5ef0210229a81a00 | |
parent | d7a7c573936a86474c4a5090a45a4bc6e680c117 (diff) |
stop_machine: struct cpu_stopper, remove alignment padding on 64 bits
Reorder elements in structure cpu_stopper to remove alignment padding on
64 bit builds, this shrinks its size from 40 to 32 bytes saving 8 bytes
per cpu.
Signed-off-by: Richard Kennedy <richard@rsk.demon.co.uk>
Acked-by: Tejun Heo <tj@kernel.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Ingo Molnar <mingo@elte.hu>
Cc: Rusty Russell <rusty@rustcorp.com.au>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
-rw-r--r-- | kernel/stop_machine.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/stop_machine.c b/kernel/stop_machine.c index 70f8d90331e9..4372ccb25127 100644 --- a/kernel/stop_machine.c +++ b/kernel/stop_machine.c | |||
@@ -35,9 +35,9 @@ struct cpu_stop_done { | |||
35 | /* the actual stopper, one per every possible cpu, enabled on online cpus */ | 35 | /* the actual stopper, one per every possible cpu, enabled on online cpus */ |
36 | struct cpu_stopper { | 36 | struct cpu_stopper { |
37 | spinlock_t lock; | 37 | spinlock_t lock; |
38 | bool enabled; /* is this stopper enabled? */ | ||
38 | struct list_head works; /* list of pending works */ | 39 | struct list_head works; /* list of pending works */ |
39 | struct task_struct *thread; /* stopper thread */ | 40 | struct task_struct *thread; /* stopper thread */ |
40 | bool enabled; /* is this stopper enabled? */ | ||
41 | }; | 41 | }; |
42 | 42 | ||
43 | static DEFINE_PER_CPU(struct cpu_stopper, cpu_stopper); | 43 | static DEFINE_PER_CPU(struct cpu_stopper, cpu_stopper); |