aboutsummaryrefslogtreecommitdiffstats
path: root/mm/slub.c
diff options
context:
space:
mode:
authorPaul Gortmaker <paul.gortmaker@windriver.com>2013-06-19 14:53:51 -0400
committerPaul Gortmaker <paul.gortmaker@windriver.com>2013-07-14 19:36:59 -0400
commit0db0628d90125193280eabb501c94feaf48fa9ab (patch)
tree0e0ef0c4eac101d25a3bd125c4a9200ac4d294c0 /mm/slub.c
parent49fb4c6290c70c418a5c25eee996d6b55ea132d6 (diff)
kernel: delete __cpuinit usage from all core kernel files
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 uses of the __cpuinit macros from C files in the core kernel directories (kernel, init, lib, mm, and include) that don't really have a specific maintainer. [1] https://lkml.org/lkml/2013/5/20/589 Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
Diffstat (limited to 'mm/slub.c')
-rw-r--r--mm/slub.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/mm/slub.c b/mm/slub.c
index 3b482c863002..2b02d666bf63 100644
--- a/mm/slub.c
+++ b/mm/slub.c
@@ -3773,7 +3773,7 @@ int __kmem_cache_create(struct kmem_cache *s, unsigned long flags)
3773 * Use the cpu notifier to insure that the cpu slabs are flushed when 3773 * Use the cpu notifier to insure that the cpu slabs are flushed when
3774 * necessary. 3774 * necessary.
3775 */ 3775 */
3776static int __cpuinit slab_cpuup_callback(struct notifier_block *nfb, 3776static int slab_cpuup_callback(struct notifier_block *nfb,
3777 unsigned long action, void *hcpu) 3777 unsigned long action, void *hcpu)
3778{ 3778{
3779 long cpu = (long)hcpu; 3779 long cpu = (long)hcpu;
@@ -3799,7 +3799,7 @@ static int __cpuinit slab_cpuup_callback(struct notifier_block *nfb,
3799 return NOTIFY_OK; 3799 return NOTIFY_OK;
3800} 3800}
3801 3801
3802static struct notifier_block __cpuinitdata slab_notifier = { 3802static struct notifier_block slab_notifier = {
3803 .notifier_call = slab_cpuup_callback 3803 .notifier_call = slab_cpuup_callback
3804}; 3804};
3805 3805