Received: by 2002:a89:d88:0:b0:1fa:5c73:8e2d with SMTP id eb8csp2108319lqb; Mon, 27 May 2024 08:07:09 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVSknp04kWvT+GEELVcOad3m0iDXEhcLpoLugF4s0NoZSdkORWLnCAhk54WezmXs+RS39nciJk1yAc9ZUkQ4nMYyw0baIaoifS/hXckww== X-Google-Smtp-Source: AGHT+IH3a/YOBxfJwB5eKdXp9XVxZ7oBVR29b2hosN+fwK05m2Ky6p5bXOSWzEDgKhHcY0dRrjwb X-Received: by 2002:a05:6a00:8013:b0:6ea:f444:341b with SMTP id d2e1a72fcca58-6f8f2c585a4mr14191596b3a.1.1716822429356; Mon, 27 May 2024 08:07:09 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716822429; cv=pass; d=google.com; s=arc-20160816; b=XzONz2BgDtu3n+JxQpWtTvfZBAm1OKu9DqDhSTA5Ynb9YUJwuxzeKSfh90SxGaSCpS xUkU9HGOji5Ru3V1TZTj1PO+gRiTIUxsGekD6CMIHNSiNSdWZ0bDGD0vbTk5sEiohpZO KYqcM82FIOr7X68R/+iI3qU1SmwiMRHq632F3uZBa3oS3nBz7GziyxpW7BtOTEWqz1Hw s1tzWJdzFCktHo2jo4AH+n2+p0UJga+Jv+7/hYHS0UmVWx5TvRCpzkkiT64M3JHJaNX/ r2BzhHOdS4w0nVq4oPviNJbO4NuWLLeGndx14ANx0PlmbMxN7jaz6V0NUld8R/DdlrPl QLAA== 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:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=KjTbB47lhtg0PaxHpHSV+ev3VLrPkOO85FcCwtdMOr8=; fh=CjfN+7R/aEEpjXXJMtW/O7LgQO9/8esnBpH6DRGk3dM=; b=T20GsEVW5lrgQnRBNbQL/vYYhayvLwTdRKl8zz153JO/D5ObDnWFlvv2N2GuVFsE20 ZYjf7EpfRyHvoO2zHLjPulNZr1Jx3EGT1Hdnz8vobFxAaFTMk7mP76mLFcxYxPG1knXb hmxyumrMhw2b378QjbQKfCs743k/AURsEkh7SOcmmzEO7mHSvo3Qqjj2goHC5RTO5QQF GVdqNM+BXNSV7a5tI0rgrM5kWqwVqdtT+JnSL5RG0mzHEakG35D40xd0g2jKWuVPw57i qXtEuO3CqcpR6uZrN6nT2H7XeSr42nZS+IjYuXPAqvW+ETDQ1AC4yA0oZ6c5fYyDLh7L UtxA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=WdcOzz9I; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-190963-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-190963-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id 41be03b00d2f7-68221c6a2adsi6850069a12.46.2024.05.27.08.07.08 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 May 2024 08:07:09 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-190963-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=WdcOzz9I; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-190963-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-190963-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 22F0B292272 for ; Mon, 27 May 2024 14:57:28 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2223917165C; Mon, 27 May 2024 14:26:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="WdcOzz9I" Received: from mail-lf1-f51.google.com (mail-lf1-f51.google.com [209.85.167.51]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 4F94F170828 for ; Mon, 27 May 2024 14:26:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.51 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716819978; cv=none; b=M7T11HE4fPDaexRq5xSVvcihbqkkR3nvydEN6Qgb54RcUwji79YpI/Kcyh99CBRxhsRZff5VT4y5Tt8LwBH7L8FNnEp8/vWxCUDrgqYUUzELrOnIQT6Wh1xMKcGO40eUFWFxntG5Zs3b6ugYRyy9L+1ounAwScWxKUSS4MLCV2M= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716819978; c=relaxed/simple; bh=Th6flGQrgEICY4BFAb32zGR1x8yV5aU/F10SCLnIldA=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=tusNdArninmPx2fSOllGuXq5r4eODnFWSpgpWKaGCczo59DNwOjaPexM0HgHNIFEuY5G4dKX5VNPQYcySoi5cU17KY0Ae0Sxi6sYsj5wcfROgvPMu3gaOdFGxyiDypP/djWrgCjM+82gSb73LfGJr7ZFgBpe+7bIMs1357Ln4S8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=WdcOzz9I; arc=none smtp.client-ip=209.85.167.51 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-lf1-f51.google.com with SMTP id 2adb3069b0e04-5295f012748so3685927e87.1 for ; Mon, 27 May 2024 07:26:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1716819974; x=1717424774; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=KjTbB47lhtg0PaxHpHSV+ev3VLrPkOO85FcCwtdMOr8=; b=WdcOzz9IhLaz5Mo4VEzpUGRMS+C608dF3VrdPzlgkAdqW8RVlCvrUStcF64LIfPXrR sKsUTuvBIOESdJXZL4hDd0y4Vbd+oHoAAblxVZtfcZcOW3zWESz273lNsXLdAbXDC2Gl TKcOVzagaRTMrvH/jtUtP3q71ez/8Luu3MNw+JCi0fUzimzFzRlZ5mwvo6BwdmeCvwhA ygRDwTIoUxuJ73AnIZ9FxF//cI46hK34HEU9ylNmPCn/g+DcIkGTYG4u9aD0c9+PEQaE RXc7Y/gVyd0aSlt2ABkI6LfD2r99xSD5dfsx2zQO9X9BalusczlIzuAwkKHMRxs8qhuc qURg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1716819974; x=1717424774; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=KjTbB47lhtg0PaxHpHSV+ev3VLrPkOO85FcCwtdMOr8=; b=GS4xi+RZWE18p0YJk8O9ue+fCV1XQnhRFHsUewRhCtodPGKjqswS8nedhIW7uZnh3t nhAJfE1Idlfxcum82wsBZw+9Fp/imBCRQySZ9y+3mSGfcdgDdnRgN0sEBndgfyY+n7sk 2r6JcTNkLEMKuUpho2nQoiG1maEG3zgUF4mWg7seMh243VqqF/bHtbmJxLMsrTyp3OhT 2eciyztVMIwv/S93zBwcSlWGdaRc27lI6PF486C4iy6msq2SrjIxq1zuIodR96rQK+2W JNQvEHKAt/8T/p5+dKQJ2IyrEm3R7p75rS8D+gVqapRMDB8XugLiL6q099gfb46Jj7Kk N1LQ== X-Forwarded-Encrypted: i=1; AJvYcCVk0d9cZaotr73GyZXeO4K4QIBo8VdhPNva1p3yyzNSXOBSYMnstdYQmVtnDtKCQ5CpDRMIpApgGig/SAivpaBj5YIOmIbKltBX8DRy X-Gm-Message-State: AOJu0YzeMfQOjgK+eBVbp0t3LZ8ouyoeiWVXPC1VdRk3myXjFXplhHw9 eCzWger57fH+H8k4242ZGlLjbQod8utwlc5ElBFmvGV8L/rZwq8f8R7CX0b7db0= X-Received: by 2002:a19:5f07:0:b0:51f:3cb3:48a4 with SMTP id 2adb3069b0e04-529646e3b70mr5388521e87.1.1716819974755; Mon, 27 May 2024 07:26:14 -0700 (PDT) Received: from uffe-tuxpro14.. (h-178-174-189-39.A498.priv.bahnhof.se. [178.174.189.39]) by smtp.gmail.com with ESMTPSA id 2adb3069b0e04-529711fa7f3sm562002e87.258.2024.05.27.07.26.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 May 2024 07:26:14 -0700 (PDT) From: Ulf Hansson To: "Rafael J . Wysocki" , Sudeep Holla , linux-pm@vger.kernel.org Cc: Lorenzo Pieralisi , Nikunj Kela , Prasad Sodagudi , Maulik Shah , Daniel Lezcano , Krzysztof Kozlowski , Ulf Hansson , linux-rt-users@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 5/7] cpuidle: psci: Drop redundant assignment of CPUIDLE_FLAG_RCU_IDLE Date: Mon, 27 May 2024 16:25:55 +0200 Message-Id: <20240527142557.321610-6-ulf.hansson@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240527142557.321610-1-ulf.hansson@linaro.org> References: <20240527142557.321610-1-ulf.hansson@linaro.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit When using the hierarchical topology and PSCI OSI-mode we may end up overriding the deepest idle-state's ->enter|enter_s2idle() callbacks, but there is no point to also re-assign the CPUIDLE_FLAG_RCU_IDLE for the idle-state in question, as that has already been set when parsing the states from DT. See init_state_node(). Signed-off-by: Ulf Hansson --- Changes in v2: - None. --- drivers/cpuidle/cpuidle-psci.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/cpuidle/cpuidle-psci.c b/drivers/cpuidle/cpuidle-psci.c index 782030a27703..d82a8bc1b194 100644 --- a/drivers/cpuidle/cpuidle-psci.c +++ b/drivers/cpuidle/cpuidle-psci.c @@ -234,7 +234,6 @@ static int psci_dt_cpu_init_topology(struct cpuidle_driver *drv, * of a shared state for the domain, assumes the domain states are all * deeper states. */ - drv->states[state_count - 1].flags |= CPUIDLE_FLAG_RCU_IDLE; drv->states[state_count - 1].enter = psci_enter_domain_idle_state; drv->states[state_count - 1].enter_s2idle = psci_enter_s2idle_domain_idle_state; psci_cpuidle_use_cpuhp = true; -- 2.34.1