Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1542789 > unrolled thread
| Started by | Boris Ostrovsky <boris.ostrovsky@oracle.com> |
|---|---|
| First post | 2016-12-15 15:50 +0100 |
| Last post | 2016-12-15 18:00 +0100 |
| Articles | 3 — 2 participants |
Back to article view | Back to linux.kernel
[PATCH 0/2] __cpuhp_setup_state() returns positive value for dynamic state Boris Ostrovsky <boris.ostrovsky@oracle.com> - 2016-12-15 15:50 +0100
[PATCH 1/2] cpu/hotplug: Clarify description of __cpuhp_setup_state() return value Boris Ostrovsky <boris.ostrovsky@oracle.com> - 2016-12-15 15:50 +0100
[tip:smp/urgent] cpu/hotplug: Clarify description of __cpuhp_setup_state() return value tip-bot for Boris Ostrovsky <tipbot@zytor.com> - 2016-12-15 18:00 +0100
| From | Boris Ostrovsky <boris.ostrovsky@oracle.com> |
|---|---|
| Date | 2016-12-15 15:50 +0100 |
| Subject | [PATCH 0/2] __cpuhp_setup_state() returns positive value for dynamic state |
| Message-ID | <sOFw5-6Xv-3@gated-at.bofh.it> |
The first patch corrects description of __cpuhp_setup_state()'s possible
return values and the second fixes a bug (which causes Xen guests to crash).
As a follow-up question for the first patch --- should we allow calling
__cpuhp_setup_state() with state in [CPUHP_AP_ONLINE_DYN + 1 .. CPUHP_AP_ONLINE_DYN_END]
range?
Boris Ostrovsky (2):
cpu/hotplug: Clarify description of __cpuhp_setup_state() return
value
cpufreq: Remove cpu hotplug callbacks only if they were initialized
drivers/cpufreq/acpi-cpufreq.c | 2 +-
kernel/cpu.c | 6 +++++-
2 files changed, 6 insertions(+), 2 deletions(-)
[toc] | [next] | [standalone]
| From | Boris Ostrovsky <boris.ostrovsky@oracle.com> |
|---|---|
| Date | 2016-12-15 15:50 +0100 |
| Subject | [PATCH 1/2] cpu/hotplug: Clarify description of __cpuhp_setup_state() return value |
| Message-ID | <sOFw5-6Xv-5@gated-at.bofh.it> |
| In reply to | #1542789 |
When ivoked with CPUHP_AP_ONLINE_DYN state __cpuhp_setup_state() is expected to return positive value which is the hotplug state that the routine assigns. Signed-off-by: Boris Ostrovsky <boris.ostrovsky@oracle.com> --- kernel/cpu.c | 6 +++++- 1 files changed, 5 insertions(+), 1 deletions(-) diff --git a/kernel/cpu.c b/kernel/cpu.c index 217fd2e..5339aca 100644 --- a/kernel/cpu.c +++ b/kernel/cpu.c @@ -1586,7 +1586,11 @@ int __cpuhp_state_add_instance(enum cpuhp_state state, struct hlist_node *node, * @startup: startup callback function * @teardown: teardown callback function * - * Returns 0 if successful, otherwise a proper error code + * Returns: + * On success: + * Positive state number if @state is CPUHP_AP_ONLINE_DYN + * 0 for all other states + * On failure: proper (negative) error code */ int __cpuhp_setup_state(enum cpuhp_state state, const char *name, bool invoke, -- 1.7.1
[toc] | [prev] | [next] | [standalone]
| From | tip-bot for Boris Ostrovsky <tipbot@zytor.com> |
|---|---|
| Date | 2016-12-15 18:00 +0100 |
| Subject | [tip:smp/urgent] cpu/hotplug: Clarify description of __cpuhp_setup_state() return value |
| Message-ID | <sOHxU-8ap-33@gated-at.bofh.it> |
| In reply to | #1542790 |
Commit-ID: 512f09801b356c54baef62543e51169f03b2e642 Gitweb: http://git.kernel.org/tip/512f09801b356c54baef62543e51169f03b2e642 Author: Boris Ostrovsky <boris.ostrovsky@oracle.com> AuthorDate: Thu, 15 Dec 2016 10:00:57 -0500 Committer: Thomas Gleixner <tglx@linutronix.de> CommitDate: Thu, 15 Dec 2016 17:48:20 +0100 cpu/hotplug: Clarify description of __cpuhp_setup_state() return value When invoked with CPUHP_AP_ONLINE_DYN state __cpuhp_setup_state() is expected to return positive value which is the hotplug state that the routine assigns. Signed-off-by: Boris Ostrovsky <boris.ostrovsky@oracle.com> Cc: linux-pm@vger.kernel.org Cc: viresh.kumar@linaro.org Cc: bigeasy@linutronix.de Cc: rjw@rjwysocki.net Cc: xen-devel@lists.xenproject.org Link: http://lkml.kernel.org/r/1481814058-4799-2-git-send-email-boris.ostrovsky@oracle.com Signed-off-by: Thomas Gleixner <tglx@linutronix.de> --- kernel/cpu.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/kernel/cpu.c b/kernel/cpu.c index 217fd2e..5339aca 100644 --- a/kernel/cpu.c +++ b/kernel/cpu.c @@ -1586,7 +1586,11 @@ EXPORT_SYMBOL_GPL(__cpuhp_state_add_instance); * @startup: startup callback function * @teardown: teardown callback function * - * Returns 0 if successful, otherwise a proper error code + * Returns: + * On success: + * Positive state number if @state is CPUHP_AP_ONLINE_DYN + * 0 for all other states + * On failure: proper (negative) error code */ int __cpuhp_setup_state(enum cpuhp_state state, const char *name, bool invoke,
[toc] | [prev] | [standalone]
Back to top | Article view | linux.kernel
csiph-web