Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 365429
b: refs/heads/master
c: 3c743a7
h: refs/heads/master
i:
  365427: 2ebebbf
v: v3
  • Loading branch information
Andrew Morton authored and Linus Torvalds committed Apr 29, 2013
1 parent cf6550c commit 23b97e4
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 6e259e7dc482d4d5e2701259ddc85ffebd957502
refs/heads/master: 3c743a7f7b682dedef188664514c0ea82e232742
9 changes: 6 additions & 3 deletions trunk/fs/proc/kcore.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
#include <linux/capability.h>
#include <linux/elf.h>
#include <linux/elfcore.h>
#include <linux/notifier.h>
#include <linux/vmalloc.h>
#include <linux/highmem.h>
#include <linux/printk.h>
Expand Down Expand Up @@ -564,7 +565,6 @@ static const struct file_operations proc_kcore_operations = {
.llseek = default_llseek,
};

#ifdef CONFIG_MEMORY_HOTPLUG
/* just remember that we have to update kcore */
static int __meminit kcore_callback(struct notifier_block *self,
unsigned long action, void *arg)
Expand All @@ -578,8 +578,11 @@ static int __meminit kcore_callback(struct notifier_block *self,
}
return NOTIFY_OK;
}
#endif

static struct notifier_block kcore_callback_nb __meminitdata = {
.notifier_call = kcore_callback,
.priority = 0,
};

static struct kcore_list kcore_vmalloc;

Expand Down Expand Up @@ -631,7 +634,7 @@ static int __init proc_kcore_init(void)
add_modules_range();
/* Store direct-map area from physical memory map */
kcore_update_ram();
hotplug_memory_notifier(kcore_callback, 0);
register_hotmemory_notifier(&kcore_callback_nb);

return 0;
}
Expand Down

0 comments on commit 23b97e4

Please sign in to comment.