Messages in this thread Patch in this message | | | From | Robin Murphy <> | Subject | [PATCH 4/5] cpu/hotplug: Add locked variant of cpuhp_state_add_instance() | Date | Mon, 4 Feb 2019 17:09:07 +0000 |
| |
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
| |