From nobody Sun Dec 14 06:16:59 2025 Received: from mail-pl1-f180.google.com (mail-pl1-f180.google.com [209.85.214.180]) (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 759132185B3 for ; Thu, 23 Jan 2025 11:39:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.180 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1737632391; cv=none; b=M+bBNe1x8EKrTnHr5zZYpleT7/IsatfH9ZacT6c/gZMU4VjZ5S5cyGRpIa/tfvbS2wDHpWOXa2d4f4N0LBu09JcTUoaEeBejY16vykAvGW4pt1QxWLq2Na5cAX3kWbXo5/UrUGH2ZvgA6yom/VkTWzPG9o+FXq2hcJ0BsPSdbfM= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1737632391; c=relaxed/simple; bh=g+5UVqausj/S8woGbcTzNjS7nHTJDZhAgMiqGXmWZmQ=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=HWjd7Zi99UnidwbaCxSf6GxSKJFeV5FFmOWZ3nDiwj1c7RnJzBApwMb7UGFkp2WOEqBOstpbpsIXeywRoL9UMQlCERuQStcw/eNU9XhUd0e/UOw9cbCm0VT+FHInM6TR3sDhE8Y5l9DfrYwgwzO2uxCzo9acStBAodnOdy9T40Q= 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=ZzezXR6B; arc=none smtp.client-ip=209.85.214.180 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="ZzezXR6B" Received: by mail-pl1-f180.google.com with SMTP id d9443c01a7336-2161eb94cceso8607875ad.2 for ; Thu, 23 Jan 2025 03:39:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1737632390; x=1738237190; 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=xwCpKJU9BK4nLoeDO8+WP0VYX3zsmqzC41yjD4cUd20=; b=ZzezXR6BPa/iKZTmBD4hmgNHukexJmybhX672kjnnMxLf4NFODTbBvZe+1E7QNj6Tz m72o80h4JubbFX3icdYAg81SZ03Y9g8UYKvvF+MAn0HS/QrLMJrC1JMNuYW7xIjJT0of RY1emHo0Zk/ln1QyBE4A/FafbjEGptj6r2Zjm7NEHQZoy3ZKo7U6vlnN66Yx4FQNodW+ 3P/re0U3JNpAgNNP9GD9Qbiyxdn1SN0gc82maYJ9nhveMRIrw+Nm08g9Wuw2ekatooA4 1W2fGh7ff+JVccJBgzwYlDQASmAaR0lsJW8srGeRn7bJJ7Vu/hNSPfDJKAYdFuffGUrg c6uw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1737632390; x=1738237190; 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=xwCpKJU9BK4nLoeDO8+WP0VYX3zsmqzC41yjD4cUd20=; b=IwRZxKOVKqYxX6hnlrb4nBPC9vhYi3XFstxYuAp5p8cdqwkGkkOpVH5Zwexg1zf303 pWfcuB02Qhwqul9JMsD7rc/wJknfiJVUy2PtFtwg6RcT0wPT2/zYmU9Q8BwkeRApP1mC LgInk3Qiz7gd1100YxwGTJi4Q6HwPToEdeyCf6JHgy+CbQRlUY676GdZ+W058qDvnX+q /bvqCFQTzurk6T5gMOdrRDOuWS/VCAjxFLyiCiXGT1Ss2vvDbrN1dXfRe3Q/yxbzasnh Pl2KFRRyloWKeiolOJ8in4SS2D30idIMLwNXmg3T0DNoDE7sLqfko0qx9MnEsI3HYpnF q23w== X-Forwarded-Encrypted: i=1; AJvYcCXQEludGJ6wdgNeIL4ibU5z3mw1qds7HzQc4gLKgtvjaAV+T3DZZUfROEqUkasbk6qyD1UqDXDMsnGS5OM=@vger.kernel.org X-Gm-Message-State: AOJu0YxWx1TvgNMPwnw7lJKwZ4zrWGaskSgH0/1EVJ6/3Iu1pW7TGZmq IIL/iq1RDMrKC5w/iEvabO58gdUxTPDJ9tWrDr3AAZHgdVKEHTF9rMuV/hjdjvw= X-Gm-Gg: ASbGnctS4Xn7BshcNUPCFUh9tc7NtVlcPsTGbbdiE6LxmjbWB/lOmcX3EZm8n7RjhnS GMemLT7mMcjrRStOwTmcxyW0Po9KzeGv2SRnR2jpUFIk5N21AK5LGBS2eBhjlq9sH+2ZJeHU0Qp S4FUugcDqRIvp3XfXwfAiSSvJrsiwRpaaXoe9b0MyHpON9R+OCKAiag0iCfaOnQulPFZTZO07At 8woHXS4RMuIvHZqslBZwhv/Z0nBty9v9fdlfi7taP3zy8DlACrbriVkN6OMCU8kbz3ZbWPyKQwf tarn0zk= X-Google-Smtp-Source: AGHT+IFnn97+a1tkcc7DZeADa5XTR/Mpm+78sHyqxcLkkY3EK29mqG5VL6REvWToDBoEwVhzHSt/FQ== X-Received: by 2002:a05:6a00:1813:b0:729:cc5:fa42 with SMTP id d2e1a72fcca58-72dafbaa1c1mr38126960b3a.20.1737632389842; Thu, 23 Jan 2025 03:39:49 -0800 (PST) Received: from localhost ([122.172.84.139]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-72dab817a4dsm13161894b3a.61.2025.01.23.03.39.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 Jan 2025 03:39:49 -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 32/33] cpufreq: Remove cpufreq_generic_attrs Date: Thu, 23 Jan 2025 17:06:08 +0530 Message-Id: <07c4420e1f3e7956e77dba34e35427f156d23c5c.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" All users of cpufreq_generic_attr are migrated now, remove it. While at it, also stop exporting attributes for available and boost frequencies as they are only used by cpufreq core now. Signed-off-by: Viresh Kumar --- drivers/cpufreq/freq_table.c | 8 -------- include/linux/cpufreq.h | 1 - 2 files changed, 9 deletions(-) diff --git a/drivers/cpufreq/freq_table.c b/drivers/cpufreq/freq_table.c index 10e80d912b8d..16e56f2fcee4 100644 --- a/drivers/cpufreq/freq_table.c +++ b/drivers/cpufreq/freq_table.c @@ -276,7 +276,6 @@ static ssize_t scaling_available_frequencies_show(struc= t cpufreq_policy *policy, return show_available_freqs(policy, buf, false); } cpufreq_attr_available_freq(scaling_available); -EXPORT_SYMBOL_GPL(cpufreq_freq_attr_scaling_available_freqs); =20 /* * scaling_boost_frequencies_show - show available boost frequencies for @@ -288,13 +287,6 @@ static ssize_t scaling_boost_frequencies_show(struct c= pufreq_policy *policy, return show_available_freqs(policy, buf, true); } cpufreq_attr_available_freq(scaling_boost); -EXPORT_SYMBOL_GPL(cpufreq_freq_attr_scaling_boost_freqs); - -struct freq_attr *cpufreq_generic_attr[] =3D { - &cpufreq_freq_attr_scaling_available_freqs, - NULL, -}; -EXPORT_SYMBOL_GPL(cpufreq_generic_attr); =20 static int set_freq_table_sorted(struct cpufreq_policy *policy) { diff --git a/include/linux/cpufreq.h b/include/linux/cpufreq.h index 7fe0981a7e46..d237ef91d1f1 100644 --- a/include/linux/cpufreq.h +++ b/include/linux/cpufreq.h @@ -1198,7 +1198,6 @@ void arch_set_freq_scale(const struct cpumask *cpus, /* the following are really really optional */ extern struct freq_attr cpufreq_freq_attr_scaling_available_freqs; extern struct freq_attr cpufreq_freq_attr_scaling_boost_freqs; -extern struct freq_attr *cpufreq_generic_attr[]; int cpufreq_table_validate_and_sort(struct cpufreq_policy *policy); =20 unsigned int cpufreq_generic_get(unsigned int cpu); --=20 2.31.1.272.g89b43f80a514