From nobody Sun Dec 14 02:26:13 2025 Received: from mail-pl1-f170.google.com (mail-pl1-f170.google.com [209.85.214.170]) (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 D5CB1218AA2 for ; Thu, 23 Jan 2025 11:39:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.170 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1737632395; cv=none; b=BHMP1bZDcNHPeYoSusBicjRSw9ZOjjh81cqhLEmKhL0IO2HjtXIHLj8T1v4j+eRimYhkd3boeODxFdpFLwCbhK7F+QDuj+hVi+jCQPL6Ctl3AS7+4MzVT9Mg8XfcZ3KPZOa4pSd37XR3UEDNhYLGg/25BsotmHCi1uZMi7r0E2M= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1737632395; c=relaxed/simple; bh=VN9IacOPeI5nUxWK7zWMJWorTJy+PSNeXSys/yXQA0s=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=R6xrcnGBE10rheBO8plIg2fg+yGQLVst8GfMtf0xitnMNrhBpfK6rsPxAIxB9smRmgM9dj331jz4sKyh8jXfScceUeic6AQ0g1MuvIeL2XrK63+WiJXuIPdhoSBeYcmGM7mlNMGMaaoeT2TM2RwSML1znvT7czhqLkcC3Ma8IsI= 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=NXWcqgCo; arc=none smtp.client-ip=209.85.214.170 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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="NXWcqgCo" Received: by mail-pl1-f170.google.com with SMTP id d9443c01a7336-2162c0f6a39so36537155ad.0 for ; Thu, 23 Jan 2025 03:39:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1737632393; x=1738237193; 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=HpR6CUvCRb/ja749qvOp/VQU58xavrM06pOATjKwG2I=; b=NXWcqgCou+EvQapK8HIFRDQa0eZ8aNmFAhBILPHZsqT/awlQjFmwKP5256Xs8sJN/O g6TWhCENVKHsT9OwuMYxsfKPnnU94t5wXQBASPMA70jjmAfiXOZXhV/o+RrRLgXewft4 7aXyh+uO8Vb2eu85NYUlcs2G1xWUSbz8z68s+4Oda6FK0YEJiurtxyNdHZWpM5ExNmxe PwEO7FktE6I5ZdZYQtuy7zQB3MeTMRsBn+eSIzrqngbtmI8W3/P5WHlLYDUqb2zk9DW5 tU/hbMx1GUJkte7j3RqXBKZ5TLPoveuNwbAGBQjB6H3E5O+Amj7lbt/t7eaYcafcq5z3 i8sQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1737632393; x=1738237193; 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=HpR6CUvCRb/ja749qvOp/VQU58xavrM06pOATjKwG2I=; b=wctQcumO6ZsMkU6lwDc2KFskW6ecdrpYrr6sEqH/IUcXryA7blRaqNyyYlS6fL2tnr GBPEUedPnJTNHdjoziG5Pkx9Kn6yx2eWlZb3iBIQsl0jbNckRH0OX8NarzsXNcE6A9qz 2wXrYiZblZVjm2PtHDGD8zNP73pDJlHLqiF4LCU+osf7i5z2gm9DVesvncA5pgMRuxho oz1qBW41ze/+oQ0Na4j75fBptys6UCzCzLABbOF3Ta9D+y9Ryo+XcRQUmv/UTGtuLlRF JaFmGr1cii2u/j0tsBOGFycC4hjFKGGfE3ZVnhrRgfzlzwPOCbhsMRmenKOe32PJOV/n 8g6Q== X-Forwarded-Encrypted: i=1; AJvYcCXm4u591931seXIVkeiSJiCNzVuO0LYz0+HIewZ1lS5oLboOWALbQZTeaFV6Q28xpOe/7dkWdT4MAiCDZw=@vger.kernel.org X-Gm-Message-State: AOJu0Ywd06z28mlT+PtbN7mhbwnyevl2sjYaejzZnBie3RK1JFCCyQ7Y ruX0b8Z0OV7NUzebyppkwyz7JcsLPvXf0kpDQZs7yx3XEy2WDJqRqwJV/pTvWxs= X-Gm-Gg: ASbGncvRO3J4R3r+f8HbFGysfr5CiANMdferHK5mgZ4e88JK998ugzaeDS4CP1kEg4p t71pXdV0A0vQKpbigKkVD4gQUJ8VvmX+xZesYrQkDK/PUvMI0v5rPRoCffBe/vwEtnu9SKQVF/N kpJzdba0X/QOUj0tlDCM5iaKXzoLQRohUlV9WivPrPuFSR2IJ3Rt+R3uA/nGERgD2hRZZYGA0C8 9i0q+p7bOFdOm8kajUyg1ikEA7Gbv6bkXpeQ7v5x7u3pdIq+t3zT4TcAJ/3pTklxTMw8yBfpiY7 VWJ/Gdk= X-Google-Smtp-Source: AGHT+IGo++1b7/8/COkEZYhpLDYX941EcGajeBPmeTjsJgAikmQ5GvL8OOkXH/im95bhumUzwE6Bwg== X-Received: by 2002:a05:6a20:3948:b0:1ea:f941:8d8e with SMTP id adf61e73a8af0-1eb6978d3a5mr4736487637.16.1737632393186; Thu, 23 Jan 2025 03:39:53 -0800 (PST) Received: from localhost ([122.172.84.139]) by smtp.gmail.com with ESMTPSA id 41be03b00d2f7-a9bdd30cdecsm12394311a12.57.2025.01.23.03.39.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 Jan 2025 03:39:52 -0800 (PST) From: Viresh Kumar To: "Rafael J. Wysocki" , Viresh Kumar Cc: linux-pm@vger.kernel.org, Vincent Guittot , linux-kernel@vger.kernel.org Subject: [PATCH 33/33] cpufreq: Stop checking for duplicate available/boost freq attributes Date: Thu, 23 Jan 2025 17:06:09 +0530 Message-Id: <320e85838d2f19f6cbd5a66aee934cbaf4f60016.1737631669.git.viresh.kumar@linaro.org> X-Mailer: git-send-email 2.31.1.272.g89b43f80a514 In-Reply-To: References: Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" None of the drivers set these attributes directly now, remove the unnecessary check. Signed-off-by: Viresh Kumar --- drivers/cpufreq/cpufreq.c | 7 ------- 1 file changed, 7 deletions(-) diff --git a/drivers/cpufreq/cpufreq.c b/drivers/cpufreq/cpufreq.c index 973bd6e4bdd4..2569f9980d2c 100644 --- a/drivers/cpufreq/cpufreq.c +++ b/drivers/cpufreq/cpufreq.c @@ -1076,13 +1076,6 @@ static int cpufreq_add_dev_interface(struct cpufreq_= policy *policy) /* set up files for this cpu device */ drv_attr =3D cpufreq_driver->attr; while (drv_attr && *drv_attr) { - /* These are already added, skip them */ - if (*drv_attr =3D=3D &cpufreq_freq_attr_scaling_available_freqs || - *drv_attr =3D=3D &cpufreq_freq_attr_scaling_boost_freqs) { - drv_attr++; - continue; - } - ret =3D sysfs_create_file(&policy->kobj, &((*drv_attr)->attr)); if (ret) return ret; --=20 2.31.1.272.g89b43f80a514