diff options
author | Lai Jiangshan <laijs@cn.fujitsu.com> | 2009-01-14 14:58:15 +0800 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2009-01-14 11:26:40 +0100 |
commit | e4fa4c97016037620f9dc8bafe03e1086b665b4c (patch) | |
tree | 130944c01e928d8a5e06aea635b222cb28515df8 /kernel/rcuclassic.c | |
parent | a6525042bfdfcab128bd91fad264de10fd24a55e (diff) | |
download | lwn-e4fa4c97016037620f9dc8bafe03e1086b665b4c.tar.gz lwn-e4fa4c97016037620f9dc8bafe03e1086b665b4c.zip |
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>
Diffstat (limited to 'kernel/rcuclassic.c')
-rw-r--r-- | kernel/rcuclassic.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/rcuclassic.c b/kernel/rcuclassic.c index 490934fc7ac3..bd5a9003497c 100644 --- a/kernel/rcuclassic.c +++ b/kernel/rcuclassic.c @@ -716,7 +716,7 @@ void rcu_check_callbacks(int cpu, int user) raise_rcu_softirq(); } -static void rcu_init_percpu_data(int cpu, struct rcu_ctrlblk *rcp, +static void __cpuinit rcu_init_percpu_data(int cpu, struct rcu_ctrlblk *rcp, struct rcu_data *rdp) { unsigned long flags; |