Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1542790
| From | Boris Ostrovsky <boris.ostrovsky@oracle.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | [PATCH 1/2] cpu/hotplug: Clarify description of __cpuhp_setup_state() return value |
| Date | 2016-12-15 15:50 +0100 |
| Message-ID | <sOFw5-6Xv-5@gated-at.bofh.it> (permalink) |
| References | <sOFw5-6Xv-3@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
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
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[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
csiph-web