Commit e4fa4c97016037620f9dc8bafe03e1086b665b4c
Committed by
Ingo Molnar
1 parent
a6525042bf
rcu: add __cpuinit to rcu_init_percpu_data()
Impact: reduce memory footprint add __cpuinit to rcu_init_percpu_data(), and this function's text will be discarded after boot when !CONFIG_HOTPLUG_CPU. Signed-off-by: Lai Jiangshan <laijs@cn.fujitsu.com> Signed-off-by: Ingo Molnar <mingo@elte.hu>
Showing 2 changed files with 2 additions and 2 deletions Side-by-side Diff
kernel/rcuclassic.c
kernel/rcutree.c
... | ... | @@ -1314,7 +1314,7 @@ |
1314 | 1314 | * access due to the fact that this CPU cannot possibly have any RCU |
1315 | 1315 | * callbacks in flight yet. |
1316 | 1316 | */ |
1317 | -static void | |
1317 | +static void __cpuinit | |
1318 | 1318 | rcu_init_percpu_data(int cpu, struct rcu_state *rsp) |
1319 | 1319 | { |
1320 | 1320 | unsigned long flags; |