Commit e4fa4c97016037620f9dc8bafe03e1086b665b4c

Authored by Lai Jiangshan
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

... ... @@ -716,7 +716,7 @@
716 716 raise_rcu_softirq();
717 717 }
718 718  
719   -static void rcu_init_percpu_data(int cpu, struct rcu_ctrlblk *rcp,
  719 +static void __cpuinit rcu_init_percpu_data(int cpu, struct rcu_ctrlblk *rcp,
720 720 struct rcu_data *rdp)
721 721 {
722 722 unsigned long flags;
... ... @@ -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;