Received: by 2002:ab2:6a05:0:b0:1f8:1780:a4ed with SMTP id w5csp3101901lqo; Tue, 14 May 2024 22:29:17 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXiaMg0vH3MX0SDmAKZfKrxQgSXxXtV53oL3RsJhuL/E2F9SwCfL7rY/+VUnqG6UI/s3YvFoRNiB/yFadugMwWhAxCKRupf+o+VfMrtbw== X-Google-Smtp-Source: AGHT+IHKLOGqxWDc9GGkX3dlnWUwJHMmDUyG5RqJOVzo+rIHB3GDd4iegkhzg+o9sC2375I32mdn X-Received: by 2002:a05:620a:1644:b0:792:c315:ecfd with SMTP id af79cd13be357-792c75ff42dmr1568764285a.69.1715750957065; Tue, 14 May 2024 22:29:17 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715750957; cv=pass; d=google.com; s=arc-20160816; b=IlQP3dmlbLkM+sD60em7uYqC2oRILBuS/UteFU+yD+4byYzynbAW1eazEo0ERUtcuK yNHVhCqQxwfHnus7f6KcprGfa9ZkMrmDuCj9GwCCey+c5rpf/DO+qV3NaV8X6fWdyPNx HiyItn2geRWfp35mfabY3tmdTAjiPOYxdS34oClPAkIFfuyuqKvud1B9o/CmC0eqNwqI ToFfU6n/H7dCZhu+H6ZFn9elc/Nje0dioHwJ9W/TTUvhzLGUbvkpOB093HgYkf/pNu6T xLLGtKtpuUC5rXfrTWvPJCn39RuDsgsFjGkplGxq8D+SigW3MmLQpu3sf9gK4yT0xyYx ObHg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=1jl0YQnmcdfnYHk+PEj5Zpgjt2dQnWsi3doEUr+qvi4=; fh=pNQYwT8l1eHXCUQOy6Dp+2siTBOhFlFmSctFCPvjjDs=; b=qbSLQ0uOuZS825UGXnbu3YxPhkHAyA3s8S3+R70gGqH3IDWs8z78+7Z64TROKPhi88 DKb0gOk7/w0QnF41fWzWgHJmMzApLW9SV74mVWOTgOJqtnauh5Wzv6mkQSDUb+7ylU6K EVPXSLIz2WCN579KwCMHWCyP6vIVoyn2T/aZ4+kIMKSiH57KLQy/H88Blg1rt+BQQsvN Q3KSBvxQGA2b5BaJLLjWwPNwqjOMmwGdrYaVeoJRGHILu6gF9r+zQaRIGt7GjvjkRJxW DhOTsmG5whxh4AUrJsZ9fk0mzIBEDg7oF/Bn+CvjXZrwJV+5s23c4P2RS7cahHsTDHdC MRUg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=L408mwvU; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-179458-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-179458-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id af79cd13be357-792bf33ac75si1320206085a.447.2024.05.14.22.29.16 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 14 May 2024 22:29:17 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-179458-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=L408mwvU; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-179458-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-179458-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id C857D1C21280 for ; Wed, 15 May 2024 05:29:16 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E1A913A1B6; Wed, 15 May 2024 05:29:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="L408mwvU" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 184AD39ACD for ; Wed, 15 May 2024 05:29:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715750951; cv=none; b=QQMlokrN544JxgBJpzCwVyymU/kf+/cYzEudQ9HU+9kkC7wMqSmgdWOe38T4y6pxSPkVrhapLAohODJBpM1t5bX6iwiouCo/GFiNjT2ZSGZcroYIcVTwM0FQBE1rnSmgJXZlVoASThfwmTz12p3pmtOSOTPS0gsMWI64d9E36rA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715750951; c=relaxed/simple; bh=KYV3IyS77KkYiDrdE4Rp2al8luhE12DTz/ap5AMIVKA=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=bTgxEx5mKsB4TrEoaUPecurKUESZEWIEiC/GnX3Wk4zCswrkdoPRx4KbWZmCRytwSW/KwJ5U8E5L7TPOBYEPDxgdc28gTqS8F1Pxpw7iwS2q7HHQWnhOi02fV/QNfmsL1QqEZ+uWZCU0BEwg8N5WVpjZxKo5Gk/fcIYoy4rHhNI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=L408mwvU; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id E080FC2BD11; Wed, 15 May 2024 05:29:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1715750950; bh=KYV3IyS77KkYiDrdE4Rp2al8luhE12DTz/ap5AMIVKA=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=L408mwvUMOeIe8NIh1DXQD4E9z4z9dV1uQCbEeR/h5oHuaALVr3+KyJVOuWQ1fDBv 5kkZKC1c57bnpNb2BZfCzwdB/xxsMnOcn+5Af2yfMOKAXhg7+DI++l09N08TleJaje o86OlC881cWpA1QS5wvrBKBmm0GcnqaWCjpTUHUYwkPKrk47JlfQgJYKCHQT1Ijj9/ iMJmkKXjnBF3qYkPlFQF+/eZkIQiueMYbkM2bu5t8ifD0Je6SgKnzPgXjxbt0ZpugZ uDegFDq8prIXnEv2AgBx6drbwQsWJnPLerYGysi8SOo1Sw+qMiabXGeDYnAh54KDZa WJu6guhn66vnQ== Date: Wed, 15 May 2024 10:53:42 +0530 From: Naveen N Rao To: Gautam Menghani Cc: mpe@ellerman.id.au, npiggin@gmail.com, christophe.leroy@csgroup.eu, aboorvad@linux.vnet.ibm.com, linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2] arch/powerpc: Remove unused cede related functions Message-ID: References: <20240514132457.292865-1-gautam@linux.ibm.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240514132457.292865-1-gautam@linux.ibm.com> On Tue, May 14, 2024 at 06:54:55PM GMT, Gautam Menghani wrote: > Remove extended_cede_processor() and its helpers as > extended_cede_processor() has no callers since > commit 48f6e7f6d948("powerpc/pseries: remove cede offline state for CPUs") > > Signed-off-by: Gautam Menghani > --- > v1 -> v2: > 1. Remove helpers of extended_cede_processor() Acked-by: Naveen N Rao > > arch/powerpc/include/asm/plpar_wrappers.h | 28 ----------------------- > 1 file changed, 28 deletions(-) > > diff --git a/arch/powerpc/include/asm/plpar_wrappers.h b/arch/powerpc/include/asm/plpar_wrappers.h > index b3ee44a40c2f..71648c126970 100644 > --- a/arch/powerpc/include/asm/plpar_wrappers.h > +++ b/arch/powerpc/include/asm/plpar_wrappers.h > @@ -18,16 +18,6 @@ static inline long poll_pending(void) > return plpar_hcall_norets(H_POLL_PENDING); > } > > -static inline u8 get_cede_latency_hint(void) > -{ > - return get_lppaca()->cede_latency_hint; > -} > - > -static inline void set_cede_latency_hint(u8 latency_hint) > -{ > - get_lppaca()->cede_latency_hint = latency_hint; > -} > - > static inline long cede_processor(void) > { > /* > @@ -37,24 +27,6 @@ static inline long cede_processor(void) > return plpar_hcall_norets_notrace(H_CEDE); > } > > -static inline long extended_cede_processor(unsigned long latency_hint) > -{ > - long rc; > - u8 old_latency_hint = get_cede_latency_hint(); > - > - set_cede_latency_hint(latency_hint); > - > - rc = cede_processor(); > - > - /* Ensure that H_CEDE returns with IRQs on */ > - if (WARN_ON(IS_ENABLED(CONFIG_PPC_IRQ_SOFT_MASK_DEBUG) && !(mfmsr() & MSR_EE))) > - __hard_irq_enable(); > - > - set_cede_latency_hint(old_latency_hint); > - > - return rc; > -} > - > static inline long vpa_call(unsigned long flags, unsigned long cpu, > unsigned long vpa) > { > -- > 2.45.0 >