diff options
Diffstat (limited to 'Documentation/cpu-hotplug.txt')
-rw-r--r-- | Documentation/cpu-hotplug.txt | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Documentation/cpu-hotplug.txt b/Documentation/cpu-hotplug.txt index edd4b4df3932..786dc82f98ce 100644 --- a/Documentation/cpu-hotplug.txt +++ b/Documentation/cpu-hotplug.txt | |||
@@ -267,8 +267,8 @@ Q: If i have some kernel code that needs to be aware of CPU arrival and | |||
267 | A: This is what you would need in your kernel code to receive notifications. | 267 | A: This is what you would need in your kernel code to receive notifications. |
268 | 268 | ||
269 | #include <linux/cpu.h> | 269 | #include <linux/cpu.h> |
270 | static int __cpuinit foobar_cpu_callback(struct notifier_block *nfb, | 270 | static int foobar_cpu_callback(struct notifier_block *nfb, |
271 | unsigned long action, void *hcpu) | 271 | unsigned long action, void *hcpu) |
272 | { | 272 | { |
273 | unsigned int cpu = (unsigned long)hcpu; | 273 | unsigned int cpu = (unsigned long)hcpu; |
274 | 274 | ||
@@ -285,7 +285,7 @@ A: This is what you would need in your kernel code to receive notifications. | |||
285 | return NOTIFY_OK; | 285 | return NOTIFY_OK; |
286 | } | 286 | } |
287 | 287 | ||
288 | static struct notifier_block __cpuinitdata foobar_cpu_notifer = | 288 | static struct notifier_block foobar_cpu_notifer = |
289 | { | 289 | { |
290 | .notifier_call = foobar_cpu_callback, | 290 | .notifier_call = foobar_cpu_callback, |
291 | }; | 291 | }; |