Received: by 2002:ac0:8c9a:0:0:0:0:0 with SMTP id r26csp4055662ima; Mon, 4 Feb 2019 09:26:56 -0800 (PST) X-Google-Smtp-Source: AHgI3IabYHyCxD34uNpX9qhetetO0oUBpwxwsPS2IL7J7bDRzRWzFasoUlK3D7rAP+CGpq2sHdkU X-Received: by 2002:a17:902:b40d:: with SMTP id x13mr453082plr.237.1549301216634; Mon, 04 Feb 2019 09:26:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1549301216; cv=none; d=google.com; s=arc-20160816; b=sAxKSoMuRoH6d2DAfyYzSKtxeoPW++9piDtzo0E1WMb3K1BF7mQCbCWDST2TCBHmw3 y2echMb/AhoKmw3wkH3U7/fBxR8P8Z6uIUx2uDKzjO0aXgxsNqTxjdg+4WinDSK84YO9 o2kYILMOCmx/Ahnrp/bHHfvXpkmhN/5c8W79ekEBvfCAfZAbyocSv/piBMc9L8Btlv64 7oN/PPQTsBT6xVmFAxfHDk1aKSq9Qpn5jF9Vm+HHtuRvhCnHTUq0E/OhkAk+WVfhd/E1 ZvFiY0x0hQak6ZcRufVROklfeXne8pT3SuysUleT+2sBGktxfKVsflqKJDRAu35C/uFd p1ug== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=rX8HHW5+hjxugsEX2wRoJsJWvfMCbew8P9O/vD9X66k=; b=H6dwPpuU3Kcq/EfaSXx6x752UGOaIlK8/cxKcbc7Pgy/jZT7RTgr4m2GSo0ulxbbUb 8FyZ7XHuaTDx5VNZs6G6aG9aR1YTLA6JJDvWD7JwuUc8GqLUttWlZxhobykzwgMFgSDb lBDdJdiA8NNbPPe6HcFS4E0R/lxP6O4rAB8kTBoOcHAAde9fLhvEF46iJqwQ0oIQ7+pR qA/cYh4X2vw0nx5BhCDeNw0hyLT2vPuMM4UylOFuoi43Y3y3Aj/GLcfHBSGRSuBhbp4j Yimx4OHaCX3CUDOtGp1YGa5ko3hmBIqargVi/wrV7Zq7uTRLkozEvmvxV8OFJnSxME2X lSRA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f75si553517pff.131.2019.02.04.09.26.41; Mon, 04 Feb 2019 09:26:56 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730708AbfBDRJ5 (ORCPT + 99 others); Mon, 4 Feb 2019 12:09:57 -0500 Received: from foss.arm.com ([217.140.101.70]:58690 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730533AbfBDRJr (ORCPT ); Mon, 4 Feb 2019 12:09:47 -0500 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 1B6AE1682; Mon, 4 Feb 2019 09:09:47 -0800 (PST) Received: from e110467-lin.cambridge.arm.com (e110467-lin.cambridge.arm.com [10.1.196.75]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id 8D7733F589; Mon, 4 Feb 2019 09:09:45 -0800 (PST) From: Robin Murphy To: will.deacon@arm.com, mark.rutland@arm.com Cc: linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, suzuki.poulose@arm.com, peterz@infradead.org, tglx@linutronix.de, bigeasy@linutronix.de Subject: [PATCH 4/5] cpu/hotplug: Add locked variant of cpuhp_state_add_instance() Date: Mon, 4 Feb 2019 17:09:07 +0000 Message-Id: <93599efb6ea546370dd470a31f8e8cf97764a31e.1549299188.git.robin.murphy@arm.com> X-Mailer: git-send-email 2.20.1.dirty In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org A helper already exists for nearly every combination of parameters, except of course the one that I now need. Signed-off-by: Robin Murphy --- include/linux/cpuhotplug.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/include/linux/cpuhotplug.h b/include/linux/cpuhotplug.h index fd586d0301e7..1d6231fe1590 100644 --- a/include/linux/cpuhotplug.h +++ b/include/linux/cpuhotplug.h @@ -290,6 +290,12 @@ static inline int cpuhp_state_add_instance(enum cpuhp_state state, return __cpuhp_state_add_instance(state, node, true); } +static inline int cpuhp_state_add_instance_cpuslocked(enum cpuhp_state state, + struct hlist_node *node) +{ + return __cpuhp_state_add_instance_cpuslocked(state, node, true); +} + /** * cpuhp_state_add_instance_nocalls - Add an instance for a state without * invoking the startup callback. -- 2.20.1.dirty