diff options
author | Ingo Molnar <mingo@elte.hu> | 2006-12-06 23:38:17 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.osdl.org> | 2006-12-07 11:39:39 -0500 |
commit | 02316067852187b8bec781bec07410e91af79627 (patch) | |
tree | 856e3f4610c91a6548bf3bf5c70ecbc0b28a4145 /mm/vmscan.c | |
parent | a38a44c1a93078fc5fadc4ac2df8dea4697069e2 (diff) |
[PATCH] hotplug CPU: clean up hotcpu_notifier() use
There was lots of #ifdef noise in the kernel due to hotcpu_notifier(fn,
prio) not correctly marking 'fn' as used in the !HOTPLUG_CPU case, and thus
generating compiler warnings of unused symbols, hence forcing people to add
#ifdefs.
the compiler can skip truly unused functions just fine:
text data bss dec hex filename
1624412 728710 3674856 6027978 5bfaca vmlinux.before
1624412 728710 3674856 6027978 5bfaca vmlinux.after
[akpm@osdl.org: topology.c fix]
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'mm/vmscan.c')
-rw-r--r-- | mm/vmscan.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/mm/vmscan.c b/mm/vmscan.c index f6616e81fac7..093f5fe6dd77 100644 --- a/mm/vmscan.c +++ b/mm/vmscan.c | |||
@@ -1513,7 +1513,6 @@ out: | |||
1513 | } | 1513 | } |
1514 | #endif | 1514 | #endif |
1515 | 1515 | ||
1516 | #ifdef CONFIG_HOTPLUG_CPU | ||
1517 | /* It's optimal to keep kswapds on the same CPUs as their memory, but | 1516 | /* It's optimal to keep kswapds on the same CPUs as their memory, but |
1518 | not required for correctness. So if the last cpu in a node goes | 1517 | not required for correctness. So if the last cpu in a node goes |
1519 | away, we get changed to run anywhere: as the first one comes back, | 1518 | away, we get changed to run anywhere: as the first one comes back, |
@@ -1534,7 +1533,6 @@ static int __devinit cpu_callback(struct notifier_block *nfb, | |||
1534 | } | 1533 | } |
1535 | return NOTIFY_OK; | 1534 | return NOTIFY_OK; |
1536 | } | 1535 | } |
1537 | #endif /* CONFIG_HOTPLUG_CPU */ | ||
1538 | 1536 | ||
1539 | /* | 1537 | /* |
1540 | * This kswapd start function will be called by init and node-hot-add. | 1538 | * This kswapd start function will be called by init and node-hot-add. |