|
@@ -62,16 +62,15 @@ static LIST_HEAD(kclist_head);
|
|
|
static DEFINE_RWLOCK(kclist_lock);
|
|
|
static int kcore_need_update = 1;
|
|
|
|
|
|
-void
|
|
|
-kclist_add(struct kcore_list *new, void *addr, size_t size, int type)
|
|
|
+/* This doesn't grab kclist_lock, so it should only be used at init time. */
|
|
|
+void __init kclist_add(struct kcore_list *new, void *addr, size_t size,
|
|
|
+ int type)
|
|
|
{
|
|
|
new->addr = (unsigned long)addr;
|
|
|
new->size = size;
|
|
|
new->type = type;
|
|
|
|
|
|
- write_lock(&kclist_lock);
|
|
|
list_add_tail(&new->list, &kclist_head);
|
|
|
- write_unlock(&kclist_lock);
|
|
|
}
|
|
|
|
|
|
static size_t get_kcore_size(int *nphdr, size_t *elf_buflen)
|