projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d7a7c57
)
stop_machine: struct cpu_stopper, remove alignment padding on 64 bits
author
Richard Kennedy
<
[email protected]
>
Tue, 10 Aug 2010 00:20:34 +0000
(17:20 -0700)
committer
Linus Torvalds
<
[email protected]
>
Tue, 10 Aug 2010 03:45:06 +0000
(20:45 -0700)
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 <
[email protected]
>
Acked-by: Tejun Heo <
[email protected]
>
Cc: Peter Zijlstra <
[email protected]
>
Cc: Ingo Molnar <
[email protected]
>
Cc: Rusty Russell <
[email protected]
>
Signed-off-by: Andrew Morton <
[email protected]
>
Signed-off-by: Linus Torvalds <
[email protected]
>
kernel/stop_machine.c
patch
|
blob
|
history
diff --git
a/kernel/stop_machine.c
b/kernel/stop_machine.c
index 70f8d90331e90359ae555b11d7c5c3ce7fe1a4fb..4372ccb25127ea8548719c78cb4a610edb94febf 100644
(file)
--- a/
kernel/stop_machine.c
+++ b/
kernel/stop_machine.c
@@
-35,9
+35,9
@@
struct cpu_stop_done {
/* the actual stopper, one per every possible cpu, enabled on online cpus */
struct cpu_stopper {
spinlock_t lock;
+ bool enabled; /* is this stopper enabled? */
struct list_head works; /* list of pending works */
struct task_struct *thread; /* stopper thread */
- bool enabled; /* is this stopper enabled? */
};
static DEFINE_PER_CPU(struct cpu_stopper, cpu_stopper);