From: Robin Murphy <robin.murphy@arm.com>
To: will.deacon@arm.com, mark.rutland@arm.com
Cc: suzuki.poulose@arm.com, peterz@infradead.org,
bigeasy@linutronix.de, linux-kernel@vger.kernel.org,
tglx@linutronix.de, linux-arm-kernel@lists.infradead.org
Subject: [PATCH 4/5] cpu/hotplug: Add locked variant of cpuhp_state_add_instance()
Date: Mon, 4 Feb 2019 17:09:07 +0000 [thread overview]
Message-ID: <93599efb6ea546370dd470a31f8e8cf97764a31e.1549299188.git.robin.murphy@arm.com> (raw)
In-Reply-To: <cover.1549299188.git.robin.murphy@arm.com>
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
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
next prev parent reply other threads:[~2019-02-04 17:11 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-02-04 17:09 [PATCH 0/5] Fix Arm system PMU hotplug issues Robin Murphy
2019-02-04 17:09 ` [PATCH 1/5] perf/arm-cci: Fix CPU hotplug race avoidance Robin Murphy
2019-02-05 10:10 ` Corentin Labbe
2019-02-05 11:19 ` Suzuki K Poulose
2019-02-10 20:43 ` Thomas Gleixner
2019-02-04 17:09 ` [PATCH 2/5] cpu/hotplug: Export __cpuhp_state_add_instance_cpuslocked() Robin Murphy
2019-02-04 17:09 ` [PATCH 3/5] perf/arm-ccn: Fix CPU hotplug race avoidance Robin Murphy
2019-02-05 11:38 ` Suzuki K Poulose
2019-02-10 20:44 ` Thomas Gleixner
2019-02-04 17:09 ` Robin Murphy [this message]
2019-02-04 17:09 ` [PATCH 5/5] perf/arm_dsu: Fix CPU hotplug races Robin Murphy
2019-02-05 11:40 ` Suzuki K Poulose
2019-02-05 13:04 ` Robin Murphy
2019-02-05 9:25 ` [PATCH 0/5] Fix Arm system PMU hotplug issues Mark Rutland
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=93599efb6ea546370dd470a31f8e8cf97764a31e.1549299188.git.robin.murphy@arm.com \
--to=robin.murphy@arm.com \
--cc=bigeasy@linutronix.de \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mark.rutland@arm.com \
--cc=peterz@infradead.org \
--cc=suzuki.poulose@arm.com \
--cc=tglx@linutronix.de \
--cc=will.deacon@arm.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).