Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1358e038 authored by Boris Ostrovsky's avatar Boris Ostrovsky Committed by Rafael J. Wysocki
Browse files

CPU/hotplug: Clarify description of __cpuhp_setup_state() return value



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: default avatarBoris Ostrovsky <boris.ostrovsky@oracle.com>
Signed-off-by: default avatarRafael J. Wysocki <rafael.j.wysocki@intel.com>
parent 2bf3b685
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -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,