projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9bf11ec
)
cpu/hotplug: Clarify description of __cpuhp_setup_state() return value
author
Boris Ostrovsky
<
[email protected]
>
Thu, 15 Dec 2016 15:00:57 +0000
(10:00 -0500)
committer
Thomas Gleixner
<
[email protected]
>
Thu, 15 Dec 2016 16:48:20 +0000
(17:48 +0100)
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 <
[email protected]
>
Cc:
[email protected]
Cc:
[email protected]
Cc:
[email protected]
Cc:
[email protected]
Cc:
[email protected]
Link:
http://lkml.kernel.org/r/
[email protected]
Signed-off-by: Thomas Gleixner <
[email protected]
>
kernel/cpu.c
patch
|
blob
|
history
diff --git
a/kernel/cpu.c
b/kernel/cpu.c
index 217fd2e7f4354140146c910f8de0607458462557..5339aca811d2289690198119206eaa42d959452f 100644
(file)
--- 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,