diff options
author | Paul Gortmaker <paul.gortmaker@windriver.com> | 2013-06-17 15:51:20 -0400 |
---|---|---|
committer | Tony Luck <tony.luck@intel.com> | 2013-06-24 18:44:27 -0400 |
commit | ccce9bb83ed20bca52f82ff9d7cf889d23a2ec01 (patch) | |
tree | 92603d8bec61c30766dd0ae9e46fff1b6416131e /arch/ia64/kernel/palinfo.c | |
parent | 69cbc0464d87bfa38c0a4fe4d8bb751c1ec8cedf (diff) |
[IA64] Delete __cpuinit usage from all ia64 users
The __cpuinit type of throwaway sections might have made sense
some time ago when RAM was more constrained, but now the savings
do not offset the cost and complications. For example, the fix in
commit 5e427ec2d0 ("x86: Fix bit corruption at CPU resume time")
is a good example of the nasty type of bugs that can be created
with improper use of the various __init prefixes.
After a discussion on LKML[1] it was decided that cpuinit should go
the way of devinit and be phased out. Once all the users are gone,
we can then finally remove the macros themselves from linux/init.h.
This removes all the ia64 uses of the __cpuinit macros.
[1] https://lkml.org/lkml/2013/5/20/589
Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
Signed-off-by: Tony Luck <tony.luck@intel.com>
Diffstat (limited to 'arch/ia64/kernel/palinfo.c')
-rw-r--r-- | arch/ia64/kernel/palinfo.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/ia64/kernel/palinfo.c b/arch/ia64/kernel/palinfo.c index 2b3c2d79256f..ab333284f4b2 100644 --- a/arch/ia64/kernel/palinfo.c +++ b/arch/ia64/kernel/palinfo.c | |||
@@ -932,7 +932,7 @@ static const struct file_operations proc_palinfo_fops = { | |||
932 | .release = single_release, | 932 | .release = single_release, |
933 | }; | 933 | }; |
934 | 934 | ||
935 | static void __cpuinit | 935 | static void |
936 | create_palinfo_proc_entries(unsigned int cpu) | 936 | create_palinfo_proc_entries(unsigned int cpu) |
937 | { | 937 | { |
938 | pal_func_cpu_u_t f; | 938 | pal_func_cpu_u_t f; |
@@ -962,7 +962,7 @@ remove_palinfo_proc_entries(unsigned int hcpu) | |||
962 | remove_proc_subtree(cpustr, palinfo_dir); | 962 | remove_proc_subtree(cpustr, palinfo_dir); |
963 | } | 963 | } |
964 | 964 | ||
965 | static int __cpuinit palinfo_cpu_callback(struct notifier_block *nfb, | 965 | static int palinfo_cpu_callback(struct notifier_block *nfb, |
966 | unsigned long action, void *hcpu) | 966 | unsigned long action, void *hcpu) |
967 | { | 967 | { |
968 | unsigned int hotcpu = (unsigned long)hcpu; | 968 | unsigned int hotcpu = (unsigned long)hcpu; |