Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757849AbcLOQ4n (ORCPT ); Thu, 15 Dec 2016 11:56:43 -0500 Received: from terminus.zytor.com ([198.137.202.10]:55238 "EHLO terminus.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754709AbcLOQ4l (ORCPT ); Thu, 15 Dec 2016 11:56:41 -0500 Date: Thu, 15 Dec 2016 08:55:14 -0800 From: tip-bot for Boris Ostrovsky Message-ID: Cc: hpa@zytor.com, tglx@linutronix.de, mingo@kernel.org, boris.ostrovsky@oracle.com, linux-kernel@vger.kernel.org Reply-To: boris.ostrovsky@oracle.com, mingo@kernel.org, tglx@linutronix.de, hpa@zytor.com, linux-kernel@vger.kernel.org In-Reply-To: <1481814058-4799-2-git-send-email-boris.ostrovsky@oracle.com> References: <1481814058-4799-2-git-send-email-boris.ostrovsky@oracle.com> To: linux-tip-commits@vger.kernel.org Subject: [tip:smp/urgent] cpu/hotplug: Clarify description of __cpuhp_setup_state() return value Git-Commit-ID: 512f09801b356c54baef62543e51169f03b2e642 X-Mailer: tip-git-log-daemon Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset=UTF-8 Content-Disposition: inline Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1565 Lines: 43 Commit-ID: 512f09801b356c54baef62543e51169f03b2e642 Gitweb: http://git.kernel.org/tip/512f09801b356c54baef62543e51169f03b2e642 Author: Boris Ostrovsky AuthorDate: Thu, 15 Dec 2016 10:00:57 -0500 Committer: Thomas Gleixner 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 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 --- 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,