Received: by 2002:ab2:6a05:0:b0:1f8:1780:a4ed with SMTP id w5csp2687378lqo; Tue, 14 May 2024 06:33:14 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXhqxzA+L+Y2AcK+bP4xPcbd4HSgT5UNWFHm++YIIw3d0bcbEpA+VtLerouUhpDfKmbjajqHW0Gb6ADHViuH530aqVbesIAexqq5xOWfg== X-Google-Smtp-Source: AGHT+IGi6d2ntswSAux4jX980yx/rcZdcCokxg7G5PtJVXVibPk3e7bf+QmH3FravlNGrY/K+wkk X-Received: by 2002:a17:903:2986:b0:1ec:3227:94ea with SMTP id d9443c01a7336-1ef44059f0emr140234925ad.67.1715693594681; Tue, 14 May 2024 06:33:14 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715693594; cv=pass; d=google.com; s=arc-20160816; b=KSn99IKnORqch+Andz9pIQgKFTXGyXR7oDTwZZd1vjQcHcBYKInpuXmobZkwTLs7ZZ 9s4mQKaBtycbnphrXYVsJsLgbslj+yBrybMH7Kyb0PchLpCWIjm9kuvz0A7CsLxajpqe puW1uDBc/ULBxHVJCwzfV4dtyIRafNRw2PUuAC07q+iAgPehRgdT+L2Eu9g/yycuK8+O Rt6TuNjMNbXkGDhoQgaX3tH9F9d3qj678uUvCw2mb45q9kBd9BwRxe5mWWGKZj48jeyc Jq439Ax2a5BoRRjKLDcV7xJlH4pwiuftI67KWFoVebWCi8P2Fto/vp2CnDsRJY/o+CXL yeEg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=3n/ZlQ5YtgNJ9JIHG4LHRuzQOsWQLVdpqdKqZaiPdJ8=; fh=+4rEGF5h2RvkVx97jwCD6EwkYqF1ZuDj1P9cN8i7q7w=; b=R+A6JXt3i/mKbya5+ssjCIvHH95u3h1Rw8R86v+7wwNTC1wmxoS0Flzq83OAP5uMXE dynqXTQPKO7cN72tCnUFO74PRs+7QIddEMgf43SvbwATLndaUrzLFgeFeHC0viBgFln4 miEeAStga1rtEg5ob4wWsNHN0HRuY7wX9EcTD3MhnyIvelbyRF/nGifkz1KodiXk3RPn 3pwKv+/rj89u9zndJoyHeSDQ6l4ELZ2Xq7UXyA09RoHNVaF+gdPQLUYQLCpn5mOQ5jsh 7k/oZoZtTkIgoW0/9hYTT4erM3OiXsFvGXQxtnVPU0O29vDahzJfMv4UNmFcpXuFjYTv ODCA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b=pQHINjjF; arc=pass (i=1 spf=pass spfdomain=linux.ibm.com dkim=pass dkdomain=ibm.com dmarc=pass fromdomain=linux.ibm.com); spf=pass (google.com: domain of linux-kernel+bounces-178752-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-178752-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=NONE dis=NONE) header.from=ibm.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id d9443c01a7336-1ef0bf32a55si120669695ad.203.2024.05.14.06.33.14 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 14 May 2024 06:33:14 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-178752-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b=pQHINjjF; arc=pass (i=1 spf=pass spfdomain=linux.ibm.com dkim=pass dkdomain=ibm.com dmarc=pass fromdomain=linux.ibm.com); spf=pass (google.com: domain of linux-kernel+bounces-178752-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-178752-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=NONE dis=NONE) header.from=ibm.com 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 sv.mirrors.kernel.org (Postfix) with ESMTPS id EF02A2850F1 for ; Tue, 14 May 2024 13:31:35 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 84A05152E1D; Tue, 14 May 2024 13:25:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=ibm.com header.i=@ibm.com header.b="pQHINjjF" Received: from mx0a-001b2d01.pphosted.com (mx0a-001b2d01.pphosted.com [148.163.156.1]) (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 25FCB144D0D for ; Tue, 14 May 2024 13:25:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=148.163.156.1 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715693123; cv=none; b=QMxXW33Mi4XObvPdFMBgaGnv2rkw4j/xtprmO2W5MHHr0HiJ4VNFXq6yhM6MRxrPESpNqyLME9g4MJO48lM3rzGbuh+CfoXpQhkpoVRxEQa6nGS709LfL7vO4k/Vl2+t8UPI+tPwMvSyLH6giDcza/832PJjCOJK5R4EyPNTjtc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715693123; c=relaxed/simple; bh=+n+p71FsVXSZnSqnPZSR7Gebkas5kDdrnnrrTE+h4TA=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=X+bV+ri3XiSJUYn0IT3BDiBw98mUmBdExJHKssamXZZiRBj18VOXUpSDD7OT75Umo3caLEQXuf2P6vQOKP3PqZTD1pX3ejl85bruwi1GxBlnWr75fZPhoSWTgB87ehwcCUVYUd1IXgEZJdyWbCgsOWt7709XwsSLwWQmHGEroGI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.ibm.com; spf=pass smtp.mailfrom=linux.ibm.com; dkim=pass (2048-bit key) header.d=ibm.com header.i=@ibm.com header.b=pQHINjjF; arc=none smtp.client-ip=148.163.156.1 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.ibm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.ibm.com Received: from pps.filterd (m0360083.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 44ECRBMv026738; Tue, 14 May 2024 13:25:13 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ibm.com; h=from : to : cc : subject : date : message-id : mime-version : content-transfer-encoding; s=pp1; bh=3n/ZlQ5YtgNJ9JIHG4LHRuzQOsWQLVdpqdKqZaiPdJ8=; b=pQHINjjFiQxMQ50xXngJm7memBdJ3dJ92Afme7HilrwbrIunZNC0y/u12orov1i6shCd EnD33lqehj4YeSj27Vpq5wbC/veo2Bn+KmKVc7WaUZOrKZK1GdmSkhOH8i/1es2EmW1N C1AxcFPmkEa6DYs+Q3veY5I/Sir0Lv0/TTetoTjWE+4TDHGeeHafwdF0XKz4Aswa+/Uw ni0M38TXKFFRawCKU7CGIApko7IcatEwR3i4ZY/04Isu3rD8Kfi4odGCT6LB4/5/St/S u04RQQmmsLhqeGKRcDoctd4ojxo4/NrRqGXBulBllg3PmScBFEg1tRjPA8kY72IQCu+P Aw== Received: from pps.reinject (localhost [127.0.0.1]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 3y47yfr572-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 14 May 2024 13:25:12 +0000 Received: from m0360083.ppops.net (m0360083.ppops.net [127.0.0.1]) by pps.reinject (8.17.1.5/8.17.1.5) with ESMTP id 44EDPCaw031055; Tue, 14 May 2024 13:25:12 GMT Received: from ppma22.wdc07v.mail.ibm.com (5c.69.3da9.ip4.static.sl-reverse.com [169.61.105.92]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 3y47yfr56w-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 14 May 2024 13:25:12 +0000 Received: from pps.filterd (ppma22.wdc07v.mail.ibm.com [127.0.0.1]) by ppma22.wdc07v.mail.ibm.com (8.17.1.19/8.17.1.19) with ESMTP id 44EBV5TR020460; Tue, 14 May 2024 13:25:11 GMT Received: from smtprelay04.fra02v.mail.ibm.com ([9.218.2.228]) by ppma22.wdc07v.mail.ibm.com (PPS) with ESMTPS id 3y2kcywqs3-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 14 May 2024 13:25:11 +0000 Received: from smtpav05.fra02v.mail.ibm.com (smtpav05.fra02v.mail.ibm.com [10.20.54.104]) by smtprelay04.fra02v.mail.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 44EDP5vx28181082 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 14 May 2024 13:25:07 GMT Received: from smtpav05.fra02v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 230C82004B; Tue, 14 May 2024 13:25:05 +0000 (GMT) Received: from smtpav05.fra02v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 8EEAC2004D; Tue, 14 May 2024 13:25:02 +0000 (GMT) Received: from li-c6426e4c-27cf-11b2-a85c-95d65bc0de0e.in.ibm.com (unknown [9.204.206.66]) by smtpav05.fra02v.mail.ibm.com (Postfix) with ESMTP; Tue, 14 May 2024 13:25:02 +0000 (GMT) From: Gautam Menghani To: mpe@ellerman.id.au, npiggin@gmail.com, christophe.leroy@csgroup.eu, naveen.n.rao@linux.ibm.com Cc: Gautam Menghani , linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org, aboorvad@linux.vnet.ibm.com Subject: [PATCH v2] arch/powerpc: Remove unused cede related functions Date: Tue, 14 May 2024 18:54:55 +0530 Message-ID: <20240514132457.292865-1-gautam@linux.ibm.com> X-Mailer: git-send-email 2.44.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-TM-AS-GCONF: 00 X-Proofpoint-ORIG-GUID: 9LgwXteiPL8gZt72kAIJKYJLjqr-VlRy X-Proofpoint-GUID: ZJQNh9_3lPi27d1Sy1a78-f54yRmc6Gu X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1039,Hydra:6.0.650,FMLib:17.11.176.26 definitions=2024-05-14_06,2024-05-14_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 spamscore=0 bulkscore=0 clxscore=1015 malwarescore=0 mlxscore=0 lowpriorityscore=0 phishscore=0 suspectscore=0 impostorscore=0 mlxlogscore=718 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2405010000 definitions=main-2405140095 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() 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