summaryrefslogtreecommitdiff
path: root/drivers/base
diff options
context:
space:
mode:
authorOlav Haugan <ohaugan@codeaurora.org>2016-08-18 16:49:44 -0700
committerOlav Haugan <ohaugan@codeaurora.org>2016-09-20 17:47:13 -0700
commit3fe956359cd3f1cd174285b693b424f89123ff96 (patch)
tree8093d51adfbff49af39bc775fdf92f355b71a374 /drivers/base
parentdcf716301e77728f08667cf0189d6de1cdc5e5e9 (diff)
watchdog: Add support for cpu isolation
Open up interface to allow external subsystem to enable and disable hard lockup detector. Change-Id: I88a728ee1d54aaa887fab52e5e40d1d4e4fc69ca Signed-off-by: Olav Haugan <ohaugan@codeaurora.org>
Diffstat (limited to 'drivers/base')
-rw-r--r--drivers/base/core.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/base/core.c b/drivers/base/core.c
index b7d56c5ea3c6..3ac683dff7de 100644
--- a/drivers/base/core.c
+++ b/drivers/base/core.c
@@ -72,6 +72,11 @@ int lock_device_hotplug_sysfs(void)
return restart_syscall();
}
+void lock_device_hotplug_assert(void)
+{
+ lockdep_assert_held(&device_hotplug_lock);
+}
+
#ifdef CONFIG_BLOCK
static inline int device_is_not_partition(struct device *dev)
{