aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/lib/debugobjects.c
diff options
context:
space:
mode:
authorBartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>2019-02-07 16:44:43 +0100
committerBartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>2019-02-07 16:44:43 +0100
commit82ffd0454bd9bd57780966d47bfd56d579dd4fb3 (patch)
treea735cfea934b7c4eac4a2c228cd95620c1daf969 /lib/debugobjects.c
parentfbdev: fbmem: convert CONFIG_FB_LOGO_CENTER into a cmd line option (diff)
parentLinux 5.0-rc5 (diff)
downloadwireguard-linux-82ffd0454bd9bd57780966d47bfd56d579dd4fb3.tar.xz
wireguard-linux-82ffd0454bd9bd57780966d47bfd56d579dd4fb3.zip
Merge tag 'v5.0-rc5' of https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux into fbdev-for-next
Linux 5.0-rc5 Sync with upstream (which now contains fbdev-v5.0-rc3 changes) to prepare a base for fbdev-v5.1 changes.
Diffstat (limited to 'lib/debugobjects.c')
-rw-r--r--lib/debugobjects.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/lib/debugobjects.c b/lib/debugobjects.c
index 14afeeb7d6ef..55437fd5128b 100644
--- a/lib/debugobjects.c
+++ b/lib/debugobjects.c
@@ -1131,11 +1131,10 @@ static int __init debug_objects_replace_static_objects(void)
}
/*
- * When debug_objects_mem_init() is called we know that only
- * one CPU is up, so disabling interrupts is enough
- * protection. This avoids the lockdep hell of lock ordering.
+ * debug_objects_mem_init() is now called early that only one CPU is up
+ * and interrupts have been disabled, so it is safe to replace the
+ * active object references.
*/
- local_irq_disable();
/* Remove the statically allocated objects from the pool */
hlist_for_each_entry_safe(obj, tmp, &obj_pool, node)
@@ -1156,7 +1155,6 @@ static int __init debug_objects_replace_static_objects(void)
cnt++;
}
}
- local_irq_enable();
pr_debug("%d of %d active objects replaced\n",
cnt, obj_pool_used);