lkml.org 
[lkml]   [2019]   [Feb]   [4]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH 4/5] cpu/hotplug: Add locked variant of cpuhp_state_add_instance()
Date
A helper already exists for nearly every combination of parameters,
except of course the one that I now need.

Signed-off-by: Robin Murphy <robin.murphy@arm.com>
---
include/linux/cpuhotplug.h | 6 ++++++
1 file changed, 6 insertions(+)

diff --git a/include/linux/cpuhotplug.h b/include/linux/cpuhotplug.h
index fd586d0301e7..1d6231fe1590 100644
--- a/include/linux/cpuhotplug.h
+++ b/include/linux/cpuhotplug.h
@@ -290,6 +290,12 @@ static inline int cpuhp_state_add_instance(enum cpuhp_state state,
return __cpuhp_state_add_instance(state, node, true);
}

+static inline int cpuhp_state_add_instance_cpuslocked(enum cpuhp_state state,
+ struct hlist_node *node)
+{
+ return __cpuhp_state_add_instance_cpuslocked(state, node, true);
+}
+
/**
* cpuhp_state_add_instance_nocalls - Add an instance for a state without
* invoking the startup callback.
--
2.20.1.dirty
\
 
 \ /
  Last update: 2019-02-04 18:10    [W:0.116 / U:6.144 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site