From patchwork Thu Jan 23 11:35:38 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 859972 Received: from mail-pl1-f174.google.com (mail-pl1-f174.google.com [209.85.214.174]) (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 F1CE920F064 for ; Thu, 23 Jan 2025 11:38:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.174 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1737632289; cv=none; b=rP1HH46tNq96FqNrnIr6H+Z+Bh56b3y3gIVwLuYu4o0ZfzjSNtF15IcNa71ELB67f3w52qDdG/Fbzr7EDCAhvb1zlArDQdhHzlLa2g29ylQoFAovx+Yp0361qtXOc3IG6Y//qcubcxroSbsqMcXMQeLIYjonsXTTxIzl9iJQ8Ko= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1737632289; c=relaxed/simple; bh=TK/02vJH9qxC6L2RbiiTzvpI0aWvujEjiv/pmlf0b60=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=MyAemQ1OiVzDazqn8O9QH6uLRaSdPdOXKlqOWrFzEo7dOiVqtzJexu9H4Hrsiy0LIjQWJi/IHVzfg9skpe/vYwMh9DCn3/vRVg5pimO8IpA3FOE/EOSUWExKelplZlccLzjn2wCiMAKRHRNLmbHhznRSL6nX4w6kLqMDjfMTb7w= 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=DAislcQ+; arc=none smtp.client-ip=209.85.214.174 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="DAislcQ+" Received: by mail-pl1-f174.google.com with SMTP id d9443c01a7336-2166360285dso12889105ad.1 for ; Thu, 23 Jan 2025 03:38:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1737632287; x=1738237087; 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=pHLQc6TpMRiBo7O03RUpvPo/6POy19GAQNZJ+hIGUAs=; b=DAislcQ+URhaKANnDvJAbPOCYQ7RAIwD9IRp6UWd58LVQHMEAM0LR4vteDyiVcuzeN L6wXVWhOxKl/9q/mkgFxN6iXZgWqHG7poW2SP4lYlSN7JXuDlHChTMbTmFvnfIzQug8r Q+fvhZnBi9CEURcKKHh5Sm5aRyzeDQn8+0xS1G8Hero7ktm39h2HDB+i6DeOiFOFX93+ UYNtDGZ4PuXKVF55EEcHoUtam4kBLt5RM4Vxrh2/AM5RP9675mrxNJYVhfLITdVY5x/P NgDQ6beSdupHouts+75X1qObjS9yBSsShTpspXDW4WvIgbWvQFmkrXMrUZiy7pxqbsDT 6k0Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1737632287; x=1738237087; 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=pHLQc6TpMRiBo7O03RUpvPo/6POy19GAQNZJ+hIGUAs=; b=Gq78vixPDFE9D5v14EiRGZPqVo7PDp05noHpq/X9O/7YvWeIjF6JpljYld1QiDvbcO sRYkKnybWBSdZ0ZRsE454yAIjbFHVK/nZIw+D2C6WDfz4TbtEhR9UW6ngzf78R3p16uH kG23PIgjwC1A0gBVuZG3e/moEOHfwPVtTwzHpWYqvVI5qUUaSEbUD8YUXWIwzrie//Lw TLesOhLi72Tf3cW3YA7MY/nKm/lIMXOAh30g+s1rSgifyS68wRHsF1t7qalcNTFBb0kx KmrfpOuI3ElkkA0la41i/j3wueINyfz5qGlxjNByZNoiRgOobdgEi8bct4P4F6qXNVTY EE0A== X-Gm-Message-State: AOJu0YzurH5aiREgl10wRBZNqeQz26OyLE4tNCw7AY0Vrt1E6Ux0LJd7 l8komXOAo5ENCUqGa+i9+jOyND/O66kpJlyhRyaVrXA7hoGiZpFyF75sve2WuAqZzh8+5sBr/F7 z X-Gm-Gg: ASbGncuBR0KrcaG3UhIw+uu0Z6W0EAa7ViH/LyyQo7+XcPNcCj/MN/8rR5m0GgD5k/m t0Q/gDNWp68xp4wb/3kNhgenhfYUsvAr7hb977nhGEeESQhL5UwSUchWYfcjld4tMyDkLjPHQZo MZgeF1FwNOZBkTF7bzq26mOQNfG6yPTIlMNVeerGjB6u7LjV31gmyZqin0hj1UuYLshhAN6QgdV /BWqwtAViJX87MSSBTsSYK5zzneVRLn/RRbnYx1Y7OEa8c64TMJrcoqfVzc0cDO8KfmAEJ1AUlC Sn8jafk= X-Google-Smtp-Source: AGHT+IHi41Np/qBLdPixkWfJVnY+1Zg5h/hxk1aFRCjn6UmJXabZCfHQZ/z7wsx3IMhaEnina5TEYw== X-Received: by 2002:a05:6a00:2294:b0:728:e745:23cd with SMTP id d2e1a72fcca58-72daf92bbd7mr37719465b3a.3.1737632287338; Thu, 23 Jan 2025 03:38:07 -0800 (PST) Received: from localhost ([122.172.84.139]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-72dab7f2e73sm12919004b3a.32.2025.01.23.03.38.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 Jan 2025 03:38:06 -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 02/33] cpufreq: dt: Stop setting cpufreq_driver->attr field Date: Thu, 23 Jan 2025 17:05:38 +0530 Message-Id: <3ed3afa4e161644ea7f0b71803d409abc7565a87.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-pm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 The cpufreq core handles this for basic attributes now, the driver can skip setting them. Signed-off-by: Viresh Kumar --- drivers/cpufreq/cpufreq-dt.c | 8 -------- 1 file changed, 8 deletions(-) diff --git a/drivers/cpufreq/cpufreq-dt.c b/drivers/cpufreq/cpufreq-dt.c index 3a7c3372bda7..072ccf0c2e41 100644 --- a/drivers/cpufreq/cpufreq-dt.c +++ b/drivers/cpufreq/cpufreq-dt.c @@ -36,12 +36,6 @@ struct private_data { static LIST_HEAD(priv_list); -static struct freq_attr *cpufreq_dt_attr[] = { - &cpufreq_freq_attr_scaling_available_freqs, - NULL, /* Extra space for boost-attr if required */ - NULL, -}; - static struct private_data *cpufreq_dt_find_data(int cpu) { struct private_data *priv; @@ -126,7 +120,6 @@ static int cpufreq_init(struct cpufreq_policy *policy) ret = cpufreq_enable_boost_support(); if (ret) goto out_clk_put; - cpufreq_dt_attr[1] = &cpufreq_freq_attr_scaling_boost_freqs; } return 0; @@ -169,7 +162,6 @@ static struct cpufreq_driver dt_cpufreq_driver = { .offline = cpufreq_offline, .register_em = cpufreq_register_em_with_opp, .name = "cpufreq-dt", - .attr = cpufreq_dt_attr, .suspend = cpufreq_generic_suspend, }; From patchwork Thu Jan 23 11:35:40 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 859971 Received: from mail-pj1-f54.google.com (mail-pj1-f54.google.com [209.85.216.54]) (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 7877C20F972 for ; Thu, 23 Jan 2025 11:38:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.216.54 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1737632295; cv=none; b=TeGfHtkXYJ5akNPm8ZqrOnjMeee9r3+HLSHg3feiG+gpLZLkzqiPmCioB/Ex6qDxDNTHXM1fMsP8WNlw/bwZsPfEo0BUSmM+Le0EygZ8Nfg5Ph3BF3D5gqHsFKqh2qnqWhFERg1gYtysLxAk2t5ZXDj2/NuOMn5X5l4vKuNofl8= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1737632295; c=relaxed/simple; bh=/eaDwV7KTDWfsPyU+hktEZ7d7yXLBX2ep1Cpqy09s9s=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=dsXx3yF6XZ1D1vV3ZKDjcQ2hDg2ThG6uSyJjeJTZsiU348uXZq1PYZvTuYl8zyuRob3/RsgylomL5NoS5ctWoPlpo5/mn5o17jcegCdr+AGerUBRB6zjvitLQky+cUMXrZ6Vj4HGPN/GUpkmU3+nEsm9TtDDxAu+LRwrgkwqkfY= 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=bTWCmuhX; arc=none smtp.client-ip=209.85.216.54 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="bTWCmuhX" Received: by mail-pj1-f54.google.com with SMTP id 98e67ed59e1d1-2ef72924e53so1489072a91.3 for ; Thu, 23 Jan 2025 03:38:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1737632294; x=1738237094; 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=0kw2sM+GGGQCvi7C9fRiq4muvzn9J9eRfRdcwd5c9mE=; b=bTWCmuhX7DU8ymMt5/srsw5NxVR2yaYOQtXO3HlmJqQ3hyKVotQ3yu3O4bQuCp7AyN 1xEqTCBhQRsAeuPmy+wVTQzgjKRyr2ZurtJH+TX7cZ7qFkSGkET5ejz0OVh4VJteQXyk iUpwSaWSZ6LwSyPBiTeGfieUH+cBka0s6aMcAAwyaFoLvYKnOvPbtwTc9/Y5lqMc4qzR U9pnsP6QTAomyjRAc2iju4k1MjFuptw92vloHEXr1tixMQzqkCl00qCUKF6h4vo8IWFd MkF5vTnljF0wu94aPRyKmB3BR1NGGONSb1j80rearwerKb1bmgAPDjNlDHaBsrjSwoi1 yssw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1737632294; x=1738237094; 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=0kw2sM+GGGQCvi7C9fRiq4muvzn9J9eRfRdcwd5c9mE=; b=NS3OtgTyeGYyflXx0B8Xt880FUdihtWIpdNEBkkeGyPHXPkuZbBMvz9AcOlTS+YWf3 1xj2TPDss6WrrV+Wl6EQLCo8sj6cjOcfuJRmW/aWxskH1VXBcbtbSZ78P6KsNw2BhECZ fa+qFUJezpsSzOCPhpyD4CzpFMchPJ0h2G1j/ydPe40yfOOt+odIm4JVK32D1jtaog24 H8malQ/N8BUZ+buROI4USeCfsy5p2fDyPHDb6ZT/y138YiItmoeV2LWgDUk8pQgx3YhW sNGWsdaISHNjLeW8Aks0WlhmJlRwsm6rvp2kpISiSTsWkQbwH7/2BXt0TtdMGsgVNLZI qTvQ== X-Gm-Message-State: AOJu0Yz6ypvI4CoaNMhffJtoo7AqrWEVALRX1PrnLkJXjn54KEZouSkD dVn2tjY1Dw4NL2xO3mTTl6ZUTHbf8eQWQ1V0quVgCzMoN3rGZnxeGtrC9XC70Ds= X-Gm-Gg: ASbGncu3ojrFB1ZslDVlMnZe0Iu52LOhKw8Dt6DC9axc8uMkyTMlOCBVzfJ/iFugI8z j5iJoJI5Y4jpVKqa5L6dPRaeFt757pAJRRerlljIwmLUhp65C7btDRqO9TdwQfNyCfWqhsVi7eY qDU0mfCgOSVlzBEk7qwkbfqU9S4rhg/7dLiPTQPPXcENMqpC/8A/S0LvOLjAi871NFmp3Pdwpt4 ky/7zNbXkkL48r9dBZPEVpproElCygZGyI/yr6lvitrtflL7P/dIKYZGIMZi8Z0s98+yG5I377E Uii9RCc= X-Google-Smtp-Source: AGHT+IHWLM3diQyfBwkugU/sw/GmrdkJCg0OZDXV8IndopAoO/pn5U57ZDPYAMTatmutRubStW8Kvw== X-Received: by 2002:a05:6a00:10d4:b0:72d:8fa2:9999 with SMTP id d2e1a72fcca58-72dafa03124mr36163356b3a.11.1737632293795; Thu, 23 Jan 2025 03:38:13 -0800 (PST) Received: from localhost ([122.172.84.139]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-72dab7f06c3sm12714223b3a.20.2025.01.23.03.38.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 Jan 2025 03:38:13 -0800 (PST) From: Viresh Kumar To: "Rafael J. Wysocki" , Hector Martin , Sven Peter , Alyssa Rosenzweig , Viresh Kumar Cc: linux-pm@vger.kernel.org, Vincent Guittot , asahi@lists.linux.dev, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH 04/33] cpufreq: apple: Stop setting cpufreq_driver->attr field Date: Thu, 23 Jan 2025 17:05:40 +0530 Message-Id: <17e7f171a63d9104a0688d223539d36feead8790.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-pm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 The cpufreq core handles this for basic attributes now, the driver can skip setting them. Signed-off-by: Viresh Kumar --- drivers/cpufreq/apple-soc-cpufreq.c | 8 -------- 1 file changed, 8 deletions(-) diff --git a/drivers/cpufreq/apple-soc-cpufreq.c b/drivers/cpufreq/apple-soc-cpufreq.c index 269b18c62d04..6ff604a0fe79 100644 --- a/drivers/cpufreq/apple-soc-cpufreq.c +++ b/drivers/cpufreq/apple-soc-cpufreq.c @@ -229,12 +229,6 @@ static int apple_soc_cpufreq_find_cluster(struct cpufreq_policy *policy, return 0; } -static struct freq_attr *apple_soc_cpufreq_hw_attr[] = { - &cpufreq_freq_attr_scaling_available_freqs, - NULL, /* Filled in below if boost is enabled */ - NULL, -}; - static int apple_soc_cpufreq_init(struct cpufreq_policy *policy) { int ret, i; @@ -321,7 +315,6 @@ static int apple_soc_cpufreq_init(struct cpufreq_policy *policy) if (ret) { dev_warn(cpu_dev, "failed to enable boost: %d\n", ret); } else { - apple_soc_cpufreq_hw_attr[1] = &cpufreq_freq_attr_scaling_boost_freqs; apple_soc_cpufreq_driver.boost_enabled = true; } } @@ -360,7 +353,6 @@ static struct cpufreq_driver apple_soc_cpufreq_driver = { .target_index = apple_soc_cpufreq_set_target, .fast_switch = apple_soc_cpufreq_fast_switch, .register_em = cpufreq_register_em_with_opp, - .attr = apple_soc_cpufreq_hw_attr, .suspend = cpufreq_generic_suspend, }; From patchwork Thu Jan 23 11:35:42 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 859970 Received: from mail-pl1-f174.google.com (mail-pl1-f174.google.com [209.85.214.174]) (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 885F820FAAC for ; Thu, 23 Jan 2025 11:38:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.174 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1737632302; cv=none; b=IfBfY1XvlKE3I5R4hiDwvhX9GJv/I4gCA7HjKpyXfyMDJOVCQS09BOiODioL1rrM9N0fYZUU2fFaXhERBhf6a7k6pVeTB5Uh6q9CB5Fnz5I8oxexTt4kR8e7p/IkzJ06IbnUAURdYHyngOU8sH3MmAOUm92mmt2FI1BJAsyz/Fc= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1737632302; c=relaxed/simple; bh=chdagJqGuIzaTRQhr0IscjqPzKErLMaWgV64P/MSA1k=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=mzQZIUk+Xq2bgKIkKCsDUthBIVLEF2T4wfAx07+QJZPA8dSNNdqnoT1PgtO6M/NsW5cB45bn0x3/r8jddhTZsFmTGT3Kr11Q3QEoV24PUOiA2VjVhCNI2wmxpMaLHGidik8C5m4x9loUAXl/pbXVACupwSFUygVKlyemPF0xdns= 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=i7ykwDTT; arc=none smtp.client-ip=209.85.214.174 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="i7ykwDTT" Received: by mail-pl1-f174.google.com with SMTP id d9443c01a7336-21680814d42so12124465ad.2 for ; Thu, 23 Jan 2025 03:38:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1737632301; x=1738237101; 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=OpVXuYPIOo1AMkujzDGS3Xg8DYJdil+zOZbNi+qKPE0=; b=i7ykwDTTCuXEcx3O54+ypsL1MvXhiW4s++1UGQ9gGV7intv2FVl3c0+f4FPpxMvDLa YZAxMkfCcjTfoJid5p3TIfWGlxlWI6KqorIIz5/9zhxCOqhMSfsn69EJ3cUK/vUCgSst o/YhQ5EyYdyq8y4F7eFT55OGNhrRhXMrL79GFjH4ArVXTlL+7ZAxtglyK+rRhkXVYrQQ zoIpWAzvi4O32juQLg6ZEmAI4M54GLxEBUcvY7g3nJUTCr7mCAbyYW5NiHryc8gb7Nhs SI4g11HmOExTg5aUbcQmyIAt/MhGW9EPMVQ+Sh5b9VWVNnQ9bYn4zzrRJ4gWgcFXtAz0 t1/g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1737632301; x=1738237101; 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=OpVXuYPIOo1AMkujzDGS3Xg8DYJdil+zOZbNi+qKPE0=; b=dMJB7AulbJCDLA2I+P4Nqlg9SmDZlZJlSLG6FwQshmB3ccuTDYpjfzwvsUKCUQ1CXF K5iCLMjenmAu9wi1jBz5kawcGM42SLYOHFfKnVQ9keklPMozDopuJ0yMeaqcaTXuUPE3 lrbifONOWSx8aCBMfPPcCaaTpD9FMnzTKySO6GRsZon2o3nhWxVVAOlgwr7E7wXhko3H 0STmNK5gA3j9nfzac3dP2NlgdYjz7w5G3/6Gjo6ua512GEkAa8hFwxYH2/RoY9VuYvr4 gEGrApuW5WnvfM9fqt4U7vFKmHRAbpMBBczjysnfCsuIuE1m2DMQAuYedndMTFpT34wH 0bBw== X-Gm-Message-State: AOJu0YxqwBE4+9gYb0nAtWDJFi/rcWd4h1CYJqe4/4pOnzhWMV/ejBco UOfdHCqunu4iwhQFUo6k/82IlwR4GPjyu2kNK5l39q6jeiVKdDxPMpuNclxI9NIJY+lBTM7Zh78 v X-Gm-Gg: ASbGncu7tfQaKFETsAgQ4sIPfIC9fKFyY7qKunOwHuRmGwxYduENJZHISl8DKD4lmhi OzfmE3R+lOKammRnSFHgOCg4wRclZ2sknqCogEdqjT6JftxrPSxqBxBf6tqFcsiDwawCaHOtO/O FT6ttfeG+993sd1BWypeLALDUulkVPRFb806Na1VLAgBMJr33BRdJVxxULt7foj5tAfv99kiw/9 xlOaPGvBBzD8sC2JQssqjC2ZHNTSP+z00OogcGxwIpxWRFxEN1XN4SQYemkYEs1vMfPGoxATPTz W783Rho= X-Google-Smtp-Source: AGHT+IH/XL+a1IKlocNRJcPr/DB+WeQS0VytU2SOKmpvEEPtNpqG4MYiPimBgaGTBbIa0Va5cHYLyA== X-Received: by 2002:a05:6a20:4307:b0:1e0:c8c5:9b1c with SMTP id adf61e73a8af0-1eb2145cb94mr39891344637.9.1737632300901; Thu, 23 Jan 2025 03:38:20 -0800 (PST) Received: from localhost ([122.172.84.139]) by smtp.gmail.com with ESMTPSA id 41be03b00d2f7-a9bdf0b7041sm10951980a12.75.2025.01.23.03.38.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 Jan 2025 03:38:20 -0800 (PST) From: Viresh Kumar To: "Rafael J. Wysocki" , Markus Mayer , Broadcom internal kernel review list , Viresh Kumar , Florian Fainelli Cc: linux-pm@vger.kernel.org, Vincent Guittot , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH 06/33] cpufreq: brcmstb: Stop setting common freq attributes Date: Thu, 23 Jan 2025 17:05:42 +0530 Message-Id: <3e6d8f8ac58727a8ca4d2a57fd90600618085936.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-pm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 The cpufreq core handles this now, the driver can skip setting it. Signed-off-by: Viresh Kumar --- drivers/cpufreq/brcmstb-avs-cpufreq.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/cpufreq/brcmstb-avs-cpufreq.c b/drivers/cpufreq/brcmstb-avs-cpufreq.c index 2fd0f6be6fa3..7b841a086acc 100644 --- a/drivers/cpufreq/brcmstb-avs-cpufreq.c +++ b/drivers/cpufreq/brcmstb-avs-cpufreq.c @@ -720,7 +720,6 @@ cpufreq_freq_attr_ro(brcm_avs_voltage); cpufreq_freq_attr_ro(brcm_avs_frequency); static struct freq_attr *brcm_avs_cpufreq_attr[] = { - &cpufreq_freq_attr_scaling_available_freqs, &brcm_avs_pstate, &brcm_avs_mode, &brcm_avs_pmap, From patchwork Thu Jan 23 11:35:44 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 859969 Received: from mail-pj1-f46.google.com (mail-pj1-f46.google.com [209.85.216.46]) (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 A4739211499 for ; Thu, 23 Jan 2025 11:38:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.216.46 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1737632310; cv=none; b=b9/yzu7uZC8Ibbk3B2aem9E0u3uMdF5MZiEcb5PLIq2lcY8aLs4yP3cwpmaTFqkD2xE8+eqqKPNeQf2sI6wvzZd9kdkVNlle3nDBavmSnSRD6OrQr5CLvUqYnL+vnA4/BCyzv+i10sRTS4+m066a2Hu86EaU5dG9Os1BZFnLF0E= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1737632310; c=relaxed/simple; bh=FxwoZUT4CWAkTdJpb5wTqOHaH/qxwabhS0+9DskqS/c=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=AZWTiv64f9kKU6xRXypdicB+C2c4VFVfVpZjbhEpxXw9GbOJdxSHUrtdHwxaWiru46mHVW+LDvbaPUzFut80IfkloKOUg2YnRbPeQyyWiWscWjbcADbbSkUI0LubpIQvam0wJ2//qWfKgNbK60gM+ofVg9owy2NjDI/+0hh0zas= 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=PyALAkdI; arc=none smtp.client-ip=209.85.216.46 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="PyALAkdI" Received: by mail-pj1-f46.google.com with SMTP id 98e67ed59e1d1-2ee50ffcf14so3156591a91.0 for ; Thu, 23 Jan 2025 03:38:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1737632308; x=1738237108; 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=tNUCJs8tTMBbcsMlIIIc/iUWSozwVtiMbxOIXPAmzXM=; b=PyALAkdIW5MPHc5kzEKD5F5RMswzCnZg9D2VSTiljFrEKFVBpSGZo4k7Q9DJf2hTH8 svLEdiFx569QX8imz2GyIFB6xYbhK0z/LdpTjpWUsN7Jfd15mpdEfQU9lnFydASo9Q6H 3ttwGdadomtjCxJQzNWP3x2iSH1aOLLCEsTZDXLOPIYs1yzefF/jsZvyLjdjk/lzBtUX SSaUDVfEhtnFLWW4zm+SKoFdc8A+8aDF8187yUXBxya24eWnIg7SqDCtOZybFowHGl5V bkOx1gUeziH7MJgzgriZzYgdYDyNAu418X6QCvExHRBq6KqYVftVEE6p18t1I0GYaFKp gPFw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1737632308; x=1738237108; 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=tNUCJs8tTMBbcsMlIIIc/iUWSozwVtiMbxOIXPAmzXM=; b=JXOvYrnu6ov4WgLYwifnpuzeKTvBXpn4K+iC0++HCvrfZPSnIt5JA+Yc0V9V9iCMtw NEuXzay3Lhsa1DB/QXRuuq8Gz7FsPPH1EqL3sjbWpjSGdRkflLvKc2TURpOe1tPvo7JW 4Mo2ie+zvYnIqXDRFqQ23aXfzGrmVAwt7w7wt35+7J9q9fkiES/2VAUq/6eGs3elugBu kIp1AKD4ecuwu2xyL324m6g4DNqwCYcqJyd++PeuNM22yhMc2yarS5734b5mY/P70I0w kj9/tkJDte1fOw0lL+p3fYlTXN8bhEt1sgadk8AqQjsFIEGkB+7yV3Ey/WkoYNTAaqRS /fAQ== X-Gm-Message-State: AOJu0YxzUty8RaFvp1fJFTTGh7jm4/ygc/HdiFjtikCc9BjiCYZSLQDg PYEN4ivhZxMmMA4+Zk20xxo2P2rTyl4plQZ0TBP8byb7HLEu8MDNEsqXJA92BDk= X-Gm-Gg: ASbGncvVSExH0CXSDfF147L2PT88PkGF8ziiVNk+gYGpqcYcGrwM0RylyUwGv40Ffv2 u8Avu2AkiO+7ttiiFau7ptqpoxICvsvbiV+f69QgcQC4AcvJMF5iCR4b9euLxdBBmB58BRGD/Ls LkodyHFdtzdDivKaCEUgyZ6sAta7f7Ne8WyrfuYSAvdOsbVBNYjReord9WT499h8qCctTUds16A elVxnEwH3azsMPR5joVBMB0JSdz5vgx+jm/Hf2R2VLXGsoRZWKuzHAlAne9UL16OTtl5f3BQ8+U 7yUa338= X-Google-Smtp-Source: AGHT+IFvwnmbtMq1AAgByJ1dQ6xLahavSboMk8vqrBZAEwTMZjjFkDFba2QzD5D2VC7qs1yzoyT1xA== X-Received: by 2002:aa7:8512:0:b0:725:e386:3c5b with SMTP id d2e1a72fcca58-72f7d1fc0acmr5032604b3a.5.1737632307954; Thu, 23 Jan 2025 03:38:27 -0800 (PST) Received: from localhost ([122.172.84.139]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-72dab814955sm12748876b3a.48.2025.01.23.03.38.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 Jan 2025 03:38:27 -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 08/33] cpufreq: e_powersaver: Stop setting cpufreq_driver->attr field Date: Thu, 23 Jan 2025 17:05:44 +0530 Message-Id: <81a74edcd9cf07440f07106d702953bde079206e.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-pm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 The cpufreq core handles this for basic attributes now, the driver can skip setting them. Signed-off-by: Viresh Kumar --- drivers/cpufreq/e_powersaver.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/cpufreq/e_powersaver.c b/drivers/cpufreq/e_powersaver.c index 6e958b09e1b5..d23a97ba6478 100644 --- a/drivers/cpufreq/e_powersaver.c +++ b/drivers/cpufreq/e_powersaver.c @@ -376,7 +376,6 @@ static struct cpufreq_driver eps_driver = { .exit = eps_cpu_exit, .get = eps_get, .name = "e_powersaver", - .attr = cpufreq_generic_attr, }; From patchwork Thu Jan 23 11:35:46 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 859968 Received: from mail-pl1-f176.google.com (mail-pl1-f176.google.com [209.85.214.176]) (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 36C5320E6E5 for ; Thu, 23 Jan 2025 11:38:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.176 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1737632316; cv=none; b=IMv0hsCIr8Cp0ZXqcjDez4KA81YRdpC0YAHhgsrdpInXoRoOLNZHzQ9QBKvgVD3AzGnJ9IO8pQpYBvEoI7HmUU7S9jLUKL30N8JHiWWxkSvuQLf4LQnFkr54CYQD/0nu1FoKQH5a+yUK4/FOtxPqd/wbC8jV8ccaHgSZw6t7JNg= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1737632316; c=relaxed/simple; bh=eqge6iGc84vWezU2Z/6+14UXJ7R2ONxOtI2jhRzLc18=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=qN0/cMuJnL7J0RNnEXmgxB5fAuBaiiWwH0muAYeFTYSYVQuB6WK8C8iFQpzu7KTOD4gUEUcDHpy7ZBHmRZV/8/fPDgSZInCcnsQp3ctdMvg3uxfo/LVcT467vjJ76tu9902Y0ETa4zGEnaVl1U+XKo5/LA3bCDQqob854KUgtRU= 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=RNQwjFmn; arc=none smtp.client-ip=209.85.214.176 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="RNQwjFmn" Received: by mail-pl1-f176.google.com with SMTP id d9443c01a7336-2165cb60719so12416555ad.0 for ; Thu, 23 Jan 2025 03:38:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1737632314; x=1738237114; 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=sYbiAMRoMV0hiAkufuN0q0TYEj4Lvw0IVcfL3LWIkWk=; b=RNQwjFmnrXm5TK26oWPCp3JBQYPBIMuwwE5btaF515vHageFFrd4Jji6WgloD71ESA G2SCcDsxNP7nZ77SvdOmyxGn6m8TsASbJ4JVtZh4hsBOayfG7DjzGacK9+QzTAs7EyNv bU92q/eE1DBtUwNJfOXlz4uHVsHR027qgcVHOY9W9dfepl2wru0FkxnY/pvrTRZGQzlQ D/i8qlPeGdfe2Wlfh1WNwmqp+vuUVLpIXb5f4ExOmOz2FI3DYFkyQisRltKBhLQ95j6y CSHZ5syfoAt5Ytrfd91IgqGTfjTf9IiiIcO34gLJi6rMprDWdTJHQkrx/e03eGYSxHpR n7OQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1737632314; x=1738237114; 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=sYbiAMRoMV0hiAkufuN0q0TYEj4Lvw0IVcfL3LWIkWk=; b=k9W/2GvKbf8FJ8bzQJxelmD2SOBGsRkutaWZjP8PklBVgqjqqXTEIpdcTs9tTQtoQj 4VQaQ/qBg/r4DdMuz9eIBvu67bz1HnlIZEbOlUWwscEpuF4V63X8egqejmmRM7wiJ/4D QQ47OzXkTuYzsylwYH+R09cPrphQlbSqiMK+ShhewWzXtW3Mr74Zx/wxa2im/SgmuYM5 4m4LaxwlTs29YV0G6LPIMWnlW8SHubzqtQR3fBdYtj22bNGgurVZk3xrUcMn584JHoDU Lgz5pp2l/qO53WdSXxxcepsvjrIGhIzQsuQ0xG3EnKGFibDaNJDIjNMiX8vN2em9CZrA R3bw== X-Gm-Message-State: AOJu0YyTwNYXHN28ht1Dc6KKVw5FNVDvzQ8W95GeaSX0c0hgoPcNbhRb 5zJMnl8NffMEkKqfJac3gwluvIjXM1stnMzdc0sPLFvKJTFE8bEOwSa1InCYEQk62BKsfid1pWr L X-Gm-Gg: ASbGncu75oKbFlTPfkC+x+qhmAYH6VkCUurDTDsrbULGe5ECfNYOM6CpOLbG0o6yOQF eTzgLl9FikNuO4/vEWIxd2R2tVDcGSNdoi/5AjK4jYtJ+xPGq9LjwP0VuemO2T23VpN2AVSzdpi MCG9z7qOBid5wpQTHMtJIi0L0SjWp2/8A2NOQQTKttX5hPgsZR6qENWo9jR1MLhdAtRUVS859Aq wmpZifi/AXvvqE7mgdzZIkewbq/ZC69duDUuId8PArAz1VJWjAN7rfvhPsILVRS/jasHJfTVnca NzKfDo8= X-Google-Smtp-Source: AGHT+IEWmtbirwXj+IQSwqe5xIcegzpevjEjqaadAFbmkiVSRl3S49VNOuJSbdJ9u4+HbITo37I9Vg== X-Received: by 2002:a17:902:d2c9:b0:21a:8ce5:10e7 with SMTP id d9443c01a7336-21c35530380mr379810615ad.23.1737632314631; Thu, 23 Jan 2025 03:38:34 -0800 (PST) Received: from localhost ([122.172.84.139]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-21c2ce9e938sm112035515ad.44.2025.01.23.03.38.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 Jan 2025 03:38:34 -0800 (PST) From: Viresh Kumar To: "Rafael J. Wysocki" , Viresh Kumar , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam Cc: linux-pm@vger.kernel.org, Vincent Guittot , imx@lists.linux.dev, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH 10/33] cpufreq: imx6q: Stop setting cpufreq_driver->attr field Date: Thu, 23 Jan 2025 17:05:46 +0530 Message-Id: <5d3f8c59063edeffb48671025685f0189b052654.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-pm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 The cpufreq core handles this for basic attributes now, the driver can skip setting them. Signed-off-by: Viresh Kumar --- drivers/cpufreq/imx6q-cpufreq.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/cpufreq/imx6q-cpufreq.c b/drivers/cpufreq/imx6q-cpufreq.c index f3c99f378ad6..db1c88e9d3f9 100644 --- a/drivers/cpufreq/imx6q-cpufreq.c +++ b/drivers/cpufreq/imx6q-cpufreq.c @@ -207,7 +207,6 @@ static struct cpufreq_driver imx6q_cpufreq_driver = { .init = imx6q_cpufreq_init, .register_em = cpufreq_register_em_with_opp, .name = "imx6q-cpufreq", - .attr = cpufreq_generic_attr, .suspend = cpufreq_generic_suspend, }; From patchwork Thu Jan 23 11:35:48 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 859967 Received: from mail-pl1-f182.google.com (mail-pl1-f182.google.com [209.85.214.182]) (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 025FE212FB4 for ; Thu, 23 Jan 2025 11:38:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.182 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1737632323; cv=none; b=lHIj2611UEAgKK70gkJ0MlnN9YoCqJR4W/cMTWZFtfcsmcRkKbQxwX0Qu6AZgHh67MuvG9ebl8WJAJnoKGmcXGFAQIMZwvVwiLQDi8rTs7YS6oVWGkAiyVMIDbNy/VQ+3ExJPHpgb6PXKZhrD94YkeP+YuaLl+/FzvPtAZObTCM= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1737632323; c=relaxed/simple; bh=gjhLnUgCBEp9meHZg6SfAGfSOVSDJTb1Hpxddkmkf70=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=cdJiZ3CUS22gPC313jnHYD4Q28n7KEKSz1Y3rPHNQpIqFgMn/QlrxgrBZ67+Q/Vk9R31BpN/HWmm6EsFLvx85DMLLzD1lZ2pbNCUQxNzPRRgebQZsgUZSFKyGsdLIInnlHdQlTNCFfwpThrjtdhgmIw95acplctmOT2oMT+O858= 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=JMYf1tG4; arc=none smtp.client-ip=209.85.214.182 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="JMYf1tG4" Received: by mail-pl1-f182.google.com with SMTP id d9443c01a7336-2166360285dso12899245ad.1 for ; Thu, 23 Jan 2025 03:38:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1737632321; x=1738237121; 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=/f+R49y7rqR8LPNzeEWH65+ozFeRSdC3z0jYqOQ6KQE=; b=JMYf1tG4EsSKxn+KkXQvic+64WNqEZFcE+rv2kk7oDhrh3RK/t30jNkFEp8Dhs2EdM 9SGuxU0ixP+EWZfUe3gOhPBkdI6ZYqoJuF1YH2UqZL+OZ8LcrwboNmG5r9cGDh8nPDbT 0zba6pOdE4Fb4M4BJC1hN3nVcasrtZEJdolykudUN/FomY8iVPWs32l1a3C/JaNzckq3 tuo1Exfn7iaiDVrLhw81zs+NWKfRsDMuas/r5D2/c5EMRqQbs6H2M4J3pM5M02dHHEiA P88BayOjkL2fHso3iy9e5YIq9cT75aq3JDSVjy985cp6m/AFpa+12tb76FvCVIFa64fU ucog== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1737632321; x=1738237121; 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=/f+R49y7rqR8LPNzeEWH65+ozFeRSdC3z0jYqOQ6KQE=; b=MPkFpN+3Zwxgry4Vt0VSEPp125LlnfLIWL1CxdeR+foMd0ONDuPI5lYtNrIQ63sxPV 1W7DVMxcWJoY8kuhqRTH/RI02KWfOThhM/Wb1CQugss+ilRVa2Hci2oYWM5ZZ9dUXJoo OF6uErRlcuSVJI1CT/jnaQ7WR3JyPbvDUz4RuelDMhgDqFLw8vYAoXWxWv9Ng8A53ksw Bs+YbxzIS04bdisISPjTt4CoZ/a4ORkQRzlJzBym7xdUZVhrmcNCEu+6FG31dDgEpQo2 dRulzuFhsnGFmseXyl78u8eUNmg2ZBbHvIrAyID3rgozkiIjDQaisRCgNthbZxH7ra6M dPJA== X-Gm-Message-State: AOJu0YyzaBU5lJfCTY71gR0HpysZEYmt4rhGnzz5K8v/81mX47UG+yvh HWQ/sgN/6z9TGRZmC8sL13sVw/kJvzKC0zmoC/SbhC0Sq+JILem8CisqcdkhnLk= X-Gm-Gg: ASbGncuwsSEnXocY9oMEvGMKZWxvLgY/lGXW0rz9EekAuVdlRCLkpUC4+gckwEwnI1T FcJ8fvMNwFCiYa5VxLvPMpzxYGTcAtIwfnRTiI2GX3tExyE/DeQgijFH1XU4KPYyVgSPDitnSrP +Uv1z2WOe1ln3I5vwp/BNowdEfYpDtWEfIch+5fOSYBvaCw087nPDZqXSfosTpHs+we/Fby2tpT 6/KDNJ85pN+1HvLXRWEP+GhIYHpfDOafCc8uL2zKJGe7cXJ77tMYDc0U9XTeuMXSymgZFW7Y/VW XkUgG68= X-Google-Smtp-Source: AGHT+IEF1gk8nknAFgH2VOJv+6XrYgoix7hht6At3tn5rpItQbdwTaF2EtfB8RgZioj8Vw2107cNrg== X-Received: by 2002:a17:902:cec3:b0:21a:7cbe:3a9a with SMTP id d9443c01a7336-21c353ee9cfmr386129505ad.14.1737632321228; Thu, 23 Jan 2025 03:38:41 -0800 (PST) Received: from localhost ([122.172.84.139]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-21c2d3acf2csm110513615ad.121.2025.01.23.03.38.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 Jan 2025 03:38:40 -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 12/33] cpufreq: longhaul: Stop setting cpufreq_driver->attr field Date: Thu, 23 Jan 2025 17:05:48 +0530 Message-Id: <2fd835c8f4f626588d2d87cf8892eb66b4f2bf63.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-pm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 The cpufreq core handles this for basic attributes now, the driver can skip setting them. Signed-off-by: Viresh Kumar --- drivers/cpufreq/longhaul.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/cpufreq/longhaul.c b/drivers/cpufreq/longhaul.c index bd6fe8638d39..68ccd73c8129 100644 --- a/drivers/cpufreq/longhaul.c +++ b/drivers/cpufreq/longhaul.c @@ -906,7 +906,6 @@ static struct cpufreq_driver longhaul_driver = { .get = longhaul_get, .init = longhaul_cpu_init, .name = "longhaul", - .attr = cpufreq_generic_attr, }; static const struct x86_cpu_id longhaul_id[] = { From patchwork Thu Jan 23 11:35:50 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 859966 Received: from mail-pl1-f173.google.com (mail-pl1-f173.google.com [209.85.214.173]) (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 DEBF02135DD for ; Thu, 23 Jan 2025 11:38:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.173 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1737632331; cv=none; b=hC581h7YfTphXsa/W+H9lpW4xucq6mIgYOOlUYuurdNiIqEjUgEis3o9IMh3hEyn2PH5QseEYGbHk2dGBw2m32hg9Vepfff1LkB4efOejhlDa+NDHG3ETNbk2RtihmHD2h0DKehTCAGVM1Hlh1hhtmixxWyJQaC98/wqq0hbETQ= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1737632331; c=relaxed/simple; bh=OuDqbHqGfRysDhKjL9U5QmypsKBYfISLrjDmh0ILSLU=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=uImVDnS4o5pKm1GOcWIAC8e4U23e4KFccgqnyxuWe9757W9m1V/gt+DZ5yjEeB8h1v11DFqBQZGalS/Jg3DNfsV6ZbPZ2EuOTlcg4IIuy3HtcuqL8Y3ikQIVCPuTGXmv7nNnRmsC6s7STh3nUvgAWzhEqQbg1krzGwJ2eFn6Qes= 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=jZTiIwE5; arc=none smtp.client-ip=209.85.214.173 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="jZTiIwE5" Received: by mail-pl1-f173.google.com with SMTP id d9443c01a7336-21675fd60feso16129525ad.2 for ; Thu, 23 Jan 2025 03:38:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1737632328; x=1738237128; 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=vt1kyyizP9VY8dmYd/NkcYQ7O3bbff4IlhNlXP/VIDI=; b=jZTiIwE5N4Pqmvl83iCCEue0h0FWxdLBhyaeYj6Z79M7+KoCHGZcygToW55E7kmJGc VXw62j9PCd6WfvThQteDED8nC4W6XGIw4LA7aw866j+08Xbx0D3NNsHMyGcOMQCERBkv JnoPOD0LfDS/kvU0ziOWlkJ1aZXNlk/9OLiDMAmZ2JY+FV2qgSzvG11NSaaPtEIMiUar yVtKF/RnwFcMI/GxlPCDbZ9Mh7DED4B6V2DNKCkwpQZZmCvXrryvCae2POoxDVDm51GZ j8Lc8FQHEUwsrB5aDw0Pqqx8G0xgWfD/tee6H+GMBFux/7hqdhiNcfDnobvBBrGeDFZ6 zdCQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1737632328; x=1738237128; 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=vt1kyyizP9VY8dmYd/NkcYQ7O3bbff4IlhNlXP/VIDI=; b=VO6U8PkMqywKIU39gr/wQGhtpWFJi6JZy82UNr/Z/1Xq6ZvY7RMnXkNfEhGnddz+K5 kHoLbVYxQ2pg6exB63qjbCFLQFldgazpXTmtMgMrcgPXmDkaLbT8a2bLlzX/SJInEoRZ zJazs5QOoD/fGUzyN8apJ02fxT7W2hmBtjF+5iIBJmHsIEhl8jahY8xw8Xw+HXf6xEg5 2y6GOdw+92ei6wkpZZPybuMhSehqnWbYSogTYWiDwBXcD2hbebrvJ3on2ChiipKeSXAA qPhw5L8bjEulgdSIROImeClSux3c0UoZwB10j82Yt2rig2ny4+Mh0dozgUJxHa6a+o5e ZOpQ== X-Gm-Message-State: AOJu0YzOquLalsmM1ejgT29YriP7+8SuMi0tiqX5Vbcbx0rqN/HcnGAo E0dIS6o8zduQtoj1VvA6D8JUyG1aBWfp8R4jdLxFYUzVXEiW3QZL+ThBcy95CpM= X-Gm-Gg: ASbGncvZjA4zoVtvyuLMdBZ3N+siC8/MpYZ3z/1V6SV3bU/+AKYKT98AQGZtzuBBV8p MEexYzClbuCEE4qdCoC6tTtaxKzZz5D0SrXLcB7rzz54ccYLZaTLPfB8L0zl40bMGHpeOcXOa5T jxOV4h27onrv0daGvaKuykRbtmvdNWkIH4G2auo1DoMqTIZkVgDzjXDn74tVm/jx9/NrU2qbMxz wUvvdsKa0Zr/75rGMU0ITxR0SQizANQG2dKOyxUj86zp75GXA2NFB8no2lYY3YSmVjF7sHptwtK kPDe64o= X-Google-Smtp-Source: AGHT+IEDImNLEpDbeExd7a/CwLwEpkI62SjufT/nbplsqzlm5l6MTyrbVsJXoZ25z9KBxH8jSJvHqg== X-Received: by 2002:a17:902:ea03:b0:219:d28a:ca23 with SMTP id d9443c01a7336-21c355eea74mr385862205ad.36.1737632328330; Thu, 23 Jan 2025 03:38:48 -0800 (PST) Received: from localhost ([122.172.84.139]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-21c2d3d7d98sm111571915ad.177.2025.01.23.03.38.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 Jan 2025 03:38:47 -0800 (PST) From: Viresh Kumar To: "Rafael J. Wysocki" , Viresh Kumar , Matthias Brugger , AngeloGioacchino Del Regno Cc: linux-pm@vger.kernel.org, Vincent Guittot , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org Subject: [PATCH 14/33] cpufreq: mediatek: Stop setting cpufreq_driver->attr field Date: Thu, 23 Jan 2025 17:05:50 +0530 Message-Id: <4f57adcf5fa9f3c95d5f86c76a323f0c8bf1a0c9.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-pm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 The cpufreq core handles this for basic attributes now, the driver can skip setting them. Signed-off-by: Viresh Kumar --- drivers/cpufreq/mediatek-cpufreq-hw.c | 1 - drivers/cpufreq/mediatek-cpufreq.c | 1 - 2 files changed, 2 deletions(-) diff --git a/drivers/cpufreq/mediatek-cpufreq-hw.c b/drivers/cpufreq/mediatek-cpufreq-hw.c index 9252ebd60373..aa209f5527dc 100644 --- a/drivers/cpufreq/mediatek-cpufreq-hw.c +++ b/drivers/cpufreq/mediatek-cpufreq-hw.c @@ -293,7 +293,6 @@ static struct cpufreq_driver cpufreq_mtk_hw_driver = { .register_em = mtk_cpufreq_register_em, .fast_switch = mtk_cpufreq_hw_fast_switch, .name = "mtk-cpufreq-hw", - .attr = cpufreq_generic_attr, }; static int mtk_cpufreq_hw_driver_probe(struct platform_device *pdev) diff --git a/drivers/cpufreq/mediatek-cpufreq.c b/drivers/cpufreq/mediatek-cpufreq.c index 663f61565cf7..2656b88db378 100644 --- a/drivers/cpufreq/mediatek-cpufreq.c +++ b/drivers/cpufreq/mediatek-cpufreq.c @@ -618,7 +618,6 @@ static struct cpufreq_driver mtk_cpufreq_driver = { .exit = mtk_cpufreq_exit, .register_em = cpufreq_register_em_with_opp, .name = "mtk-cpufreq", - .attr = cpufreq_generic_attr, }; static int mtk_cpufreq_probe(struct platform_device *pdev) From patchwork Thu Jan 23 11:35:52 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 859965 Received: from mail-pl1-f181.google.com (mail-pl1-f181.google.com [209.85.214.181]) (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 E34F520F967 for ; Thu, 23 Jan 2025 11:38:55 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.181 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1737632337; cv=none; b=eePDV+7SO1vtX14t/ZJDFY7+KHPPHH2kzroW2g0OIiCBD8iHPncUOQwURwAjZBkbDHQop5VYpYkle2qJwhNcYZ67L9ADTZDaurPgcgILwl6mSWMCiZvqO1k4OVwvQYhwBmLFV/8b3XHhvAICynsO7dlUuS+U0FUE2TB9KYAIdus= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1737632337; c=relaxed/simple; bh=l/ZtrPDOVSNg8XHI3m1UYzDQeoPlFdWwpysIgnohRTE=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=fdONqLLFej53g3+kcHio8/cfVWcLCyL50P0y3P91OAp/Ipwhlcd/3xiQPM9UzfOuxoqvcFU2lW+GrruFpduBmeQMKkoE6ocqk18jrtf1pbsaf/OMriYWV/nuBMMypuPof4r6OoxMlb9tg1Wle2jBNMXqrao/kbaFBY0cLeTd7Jc= 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=ehnAED0E; arc=none smtp.client-ip=209.85.214.181 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="ehnAED0E" Received: by mail-pl1-f181.google.com with SMTP id d9443c01a7336-2164b1f05caso11956725ad.3 for ; Thu, 23 Jan 2025 03:38:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1737632335; x=1738237135; 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=hZKL8mCFGzDJ57UILfjkQQSDe5NBzM/NuS+z4/cUha0=; b=ehnAED0El3KFJGOK0tF5a/0q+GQJOvbimrqrNLzIcvdUne3PFKY+bQx95PHPHRQZFg yTzUfLFvwVxbmNKgtsr7J7XkR0NklKwXzn28IdL0yMDbYwMVSKjfxK+mgtFaYe2sshHL nryt2+p/Rlv38euT8ACNN096FVpPmOR8c8N4t2sNFLQnucmSQVJ03NZpUm09FX4Jx+zt W6snftGGOEQmWK+VTq+YIv+W/8ykwvPflRGRfNv2WdM4r9fIctqn+gWWEUSednFGWPv5 OZKdZcSUiIFPHEOvd8pggou9z+GdvdBG1TFsXshu74DM0qwrolHmAiJM5s+KJcZ22+CE uWNg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1737632335; x=1738237135; 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=hZKL8mCFGzDJ57UILfjkQQSDe5NBzM/NuS+z4/cUha0=; b=OychiA5Uty9Jf6CNFPXQ8RjUF4uEBluhG7j335F4zKew1eRsqr5Slre5HTsOUr4Bld JfRtqseXyG7jCngITXQyih0Gqyd4BjkGk1klEFCHjNBjVeSc94fLaBaNlJZZX1d4MsYb K/6wIYPkidRitt4SilwiGpdnpoOgCmNEnEX5qGQkkwkUHjlQTr5K9+viDPwL5ObRaDn6 kYl2f9pkcxWJnH2gjJx/ByTxG+GAYyJ2hwKDUa+d2wx2j/ePZD7iz+WJPkrMObSkt4lj 8LH4Mt7yci4R5Vvl4BnDe+vzSe0uj7B5tW+KyRIMQCFTqVeqsx+76r6S/ExsRrtyHoWl Rtzg== X-Gm-Message-State: AOJu0YzQDJgvfC6nQZPNaH0nWQPqFR0nu0V9Ta97L+1J+VYiSsACcC5z qyJ4Lx5azo5le8GkvY712elwNCGkmzBDVF3BbtPmaeL03ThDszihakfzoDmIY6M= X-Gm-Gg: ASbGnctuw148VE9/sfR8Fc/mLoyeilRVZ6SBcWu4pX66n5G7DaMhlNB/aU927CXcp0v 6ZKFk/K7PsC391DGgqLDgOIpn3bjoxI/9iOpAYjI5QccouKCXjBe+VDp5P9RYPa6N2ya9cZStXN qbgkIXCcPbDWbbD8iNU8EDJVSNVIWACc2wdaxSUVp63kgwZVdl2vstdOHaJpOFCHXPTPDq9hn/y HKKtRSAImzLOGfDTF+oH0hbm2tI311sjYnEn/1ty6so33deVXzfhW4CU5FQbJMtvhnUXk8w3P9K I0eV8Ls= X-Google-Smtp-Source: AGHT+IGkhkDfdgugGjlffy8yk5cvn/fKZwo0Z6Pi2dOa8WyxHLZVLsDgHmGNQbOmumHerqhkpWOpXA== X-Received: by 2002:a17:902:db12:b0:215:603e:214a with SMTP id d9443c01a7336-21c352c8151mr450071325ad.1.1737632335096; Thu, 23 Jan 2025 03:38:55 -0800 (PST) Received: from localhost ([122.172.84.139]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-21c2d4027bdsm111345385ad.219.2025.01.23.03.38.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 Jan 2025 03:38:54 -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 16/33] cpufreq: p4: Stop setting cpufreq_driver->attr field Date: Thu, 23 Jan 2025 17:05:52 +0530 Message-Id: <3ba09d4cdeca803770791333335b7917d3480b60.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-pm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 The cpufreq core handles this for basic attributes now, the driver can skip setting them. Signed-off-by: Viresh Kumar --- drivers/cpufreq/p4-clockmod.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/cpufreq/p4-clockmod.c b/drivers/cpufreq/p4-clockmod.c index ef0a3216a386..69c19233fcd4 100644 --- a/drivers/cpufreq/p4-clockmod.c +++ b/drivers/cpufreq/p4-clockmod.c @@ -227,7 +227,6 @@ static struct cpufreq_driver p4clockmod_driver = { .init = cpufreq_p4_cpu_init, .get = cpufreq_p4_get, .name = "p4-clockmod", - .attr = cpufreq_generic_attr, }; static const struct x86_cpu_id cpufreq_p4_id[] = { From patchwork Thu Jan 23 11:35:54 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 859964 Received: from mail-pl1-f181.google.com (mail-pl1-f181.google.com [209.85.214.181]) (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 B7F8A214A6E for ; Thu, 23 Jan 2025 11:39:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.181 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1737632344; cv=none; b=nuMbEMCt5vROwSdP43tgaufIjBM3xfipPxTwLxlAUCci9/VjiEV6uVzq2nRYUfv4HIOuTapdwg0tKdvZZdpzHHBYnstrAHbWaTq7judPE6Wqni2cINO4kUGCxXcOfMK0kSK4/XNH+69VYi1eOYxNI597OwELgFJ+QuG+8sa2nBI= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1737632344; c=relaxed/simple; bh=1TgBER8sFGZQgqK+x2ai4Zw+YEr6+EpZ4fRhfGjT9Uc=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=NuIspIo74Ls35CwKEfXq9RZgi8HHnayr6x+FW7n1mIFe53AVFGUmX2Qme1kaGXlEZ8v5Y4jd2G2I1gMpADnTm9UvdMSzgs8pyLfw+eFvdn1YzYAd1l1/UAe9hamcL0uvtcPI+zpWfI7w6FZDtGnaoRHp+dxfV1hTTLMJRYAlIi0= 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=mEX0CHpN; arc=none smtp.client-ip=209.85.214.181 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="mEX0CHpN" Received: by mail-pl1-f181.google.com with SMTP id d9443c01a7336-2163b0c09afso13602305ad.0 for ; Thu, 23 Jan 2025 03:39:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1737632342; x=1738237142; 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=QfvCGCHZNCxyn69/UWRqVioH0Lp44Bh/3oJ9xo86mtE=; b=mEX0CHpN8f+5R+8BRYRQ4PeGF3Js/rDGTNSJ6BgdZXhJlaeaz8D3CVo8CrTyNY7OQB xQTjeZe3sL6lBU1kKaL6/DtWe1ds3MIgtkeqE1nyoT4epz6JxjCVYW6JKVemUvfLDQOr HSBMlFgfTmDNWR+QPyEbLznbQplX7YWRgjU7UtIe9nPu+5yD3RON0cV0tOQn8C2xdphg IQeL2WVtDK1BubUR0uhbbazSB87hjXiLFDpq3EQbH17k4+7Rx7CBSa4xnKHwQKyaOnso toJocC+3TJQZQkEuzmJ7JrBYslJVm9pGeE8HzyxD9nV3neNi7x4VHheWniFr4BtzzRh0 hBwg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1737632342; x=1738237142; 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=QfvCGCHZNCxyn69/UWRqVioH0Lp44Bh/3oJ9xo86mtE=; b=Tc7boZHxSst1ZXmXEAnre0LL8pTzwP8amX3M4dNgIr1WKjpRk2SxNUqZsEMxz5+aeW PXwJ4IAm7lntLPA/xoDuSZCaRXy1lfzOxbWhtFaaQBCKQRlyonjotZAzBtLBdhiAqbSj H2jhBLKtbmZzV1G4MWnu0XhJVphEPks8ttjVJIJhv17yzHMfpGf46+MEjrb4h1Lj36oT tIOGT9FqM3eccL3pymkJmr5RUNyDgvhhTsscAj4IETwhZXzULSchw50UKF8fFG2VBpVz 1H/88Yc6em/QNxROf74sx9/zLkJ1lK2GDqu50J3bOmS7h7jJHm+OMwZQ0CaQVdBBUtHZ YfAg== X-Gm-Message-State: AOJu0YztfBzuDaTnZ4O7SZyLDLloMsZK8iL/pKzQaPaNIQte+Jwm5Amu 3VkChDUV652+Ky3tgMwTTGTlzsz3ZdGqrb5Q/3jEFa4UXFw0nycL0OjsYs1Sk3A= X-Gm-Gg: ASbGncvTq5aGd+BIaVjK+hp5VSiq7tBw6NQ8DrwjJ9dNelZBJtKMnuAaePteFc9EzV9 WiaBmy3xyrkCXDEm+NMt8CyTAcVzNIeyJqKYA9v4Cs9DrpFbSrgHby/iac0x3q/oosykGVrvN+Y /Isn7Km+i4uXo92ftSS9ftMnyMLY/1ia7y8XE9giCgSskdNDqODDPYOPf/UMyJVz9kb4bGtHfdR kGvUKoxnCCybH1VU/IQksIrvvv5tyvm8a5MMatAgFm+3jBQvww1u9PjcRmBCmIqDkvfeYSt4swo f+434ec= X-Google-Smtp-Source: AGHT+IFOTJp7fcVtErTm2ko8MfwAJVCJqrxtj35BJRTuPk8xc83dAT0RCHhiqJHyXYcuqQ3GU0FTBg== X-Received: by 2002:a17:902:c943:b0:215:5bd8:9f92 with SMTP id d9443c01a7336-21c351d328amr426236855ad.5.1737632342032; Thu, 23 Jan 2025 03:39:02 -0800 (PST) Received: from localhost ([122.172.84.139]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-21c2d3deb6csm111272655ad.175.2025.01.23.03.39.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 Jan 2025 03:39:01 -0800 (PST) From: Viresh Kumar To: "Rafael J. Wysocki" , Viresh Kumar , Michael Ellerman , Nicholas Piggin , Christophe Leroy , Naveen N Rao , Madhavan Srinivasan Cc: linux-pm@vger.kernel.org, Vincent Guittot , linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org Subject: [PATCH 18/33] cpufreq: pmac: Stop setting cpufreq_driver->attr field Date: Thu, 23 Jan 2025 17:05:54 +0530 Message-Id: X-Mailer: git-send-email 2.31.1.272.g89b43f80a514 In-Reply-To: References: Precedence: bulk X-Mailing-List: linux-pm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 The cpufreq core handles this for basic attributes now, the drivers can skip setting them. Signed-off-by: Viresh Kumar --- drivers/cpufreq/pmac32-cpufreq.c | 1 - drivers/cpufreq/pmac64-cpufreq.c | 1 - 2 files changed, 2 deletions(-) diff --git a/drivers/cpufreq/pmac32-cpufreq.c b/drivers/cpufreq/pmac32-cpufreq.c index 6c9f0888a2a7..a22c22bd693a 100644 --- a/drivers/cpufreq/pmac32-cpufreq.c +++ b/drivers/cpufreq/pmac32-cpufreq.c @@ -439,7 +439,6 @@ static struct cpufreq_driver pmac_cpufreq_driver = { .suspend = pmac_cpufreq_suspend, .resume = pmac_cpufreq_resume, .flags = CPUFREQ_NO_AUTO_DYNAMIC_SWITCHING, - .attr = cpufreq_generic_attr, .name = "powermac", }; diff --git a/drivers/cpufreq/pmac64-cpufreq.c b/drivers/cpufreq/pmac64-cpufreq.c index 74ff6c47df29..80897ec8f00e 100644 --- a/drivers/cpufreq/pmac64-cpufreq.c +++ b/drivers/cpufreq/pmac64-cpufreq.c @@ -332,7 +332,6 @@ static struct cpufreq_driver g5_cpufreq_driver = { .verify = cpufreq_generic_frequency_table_verify, .target_index = g5_cpufreq_target, .get = g5_cpufreq_get_speed, - .attr = cpufreq_generic_attr, }; From patchwork Thu Jan 23 11:35:56 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 859963 Received: from mail-pl1-f179.google.com (mail-pl1-f179.google.com [209.85.214.179]) (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 B37D52153F1 for ; Thu, 23 Jan 2025 11:39:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.179 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1737632351; cv=none; b=taoSrVsvvyzUHEGkAnC3bmnmC+046w5/P2SgTER/T1DjjQtIU4ajVVDSVwfTZAJ3iHijuhp3A0BlcEUGYe17S2ilH+dQIN36dlELCGwH68TnPsgkFCFF/RQaRNaOBxu2s4oPv5DtFG1Ub4thqwgJJr6982U8ln27F8zuyy5uoU8= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1737632351; c=relaxed/simple; bh=nBYWr6u0ZfDo3OuGnUqOwU6bkdCzsoe1frBrwoTxnF4=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=f+6A9K5pKRkezfxOJ7CGHn/lJOvsawF34dBx/5FCOrN3gsOpz1mxco9YQJ7RCq3h9NnPLzf1fSiEOOF4vrzb03yYYIKgx28wusa53w8ULF7XOypEWCLn1yIAVM514qh8fBDqgXHImi2muX83CePVhlFcFnuxzUMtD2CJ7me5HuI= 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=Mgnyj5Hj; arc=none smtp.client-ip=209.85.214.179 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="Mgnyj5Hj" Received: by mail-pl1-f179.google.com with SMTP id d9443c01a7336-216634dd574so8750485ad.2 for ; Thu, 23 Jan 2025 03:39:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1737632349; x=1738237149; 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=NOQaZrUykuIT2nDOu/hapfD8pr24HO9XboBFcdlFf5E=; b=Mgnyj5Hjegq1sjgvt7Oe77prbEQbucNRxGoZ8STlL8zQjBTknzCJcOVPApqSWCOF24 W5LK3CFRByoUm7JQiCB9OSIVjK2jxNyVIxM8/zXgT57YxljA+FcC50g2VBmgMvkE7h1B FQtBx41886l4Ng30cxn3Fm8EePIvbvG0v/Jx+dW2Kmf90x9BZlJJfL1R1HUOglKb95l6 ns88hhZMYuL8jEWdDZBIt+qXL4vc695Dn7W7sthJ1h2JXijCFT9/chDDePgZGoOBQphb 21bS8pgLJ5zE5ET2ttjGEwtw/ULC4w/yMWENhS7bRSXnSlv/d3e/ZrMeJyHkAAZkT41/ WweQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1737632349; x=1738237149; 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=NOQaZrUykuIT2nDOu/hapfD8pr24HO9XboBFcdlFf5E=; b=LzWCOY1QQPom3gySeHaGINpsdxcPkoxUL1npgNktuFZL8D9Dxt3Gob6le+mRIGuQ1X SRYx0n3Ftp3f9nmJ2f76vKeXUDurJ63+9TDJnYRApdEc1CrZ+swaqFp+qqOceIWEP5ra TXnypD5Hed3C7YodaZ4nJTF0L19K7B6Qgf053EMhvQw1K21XTzSh0nYu9qQ7yEJ20IPf 48LcRzDYFz1CwBS8EtjVVEq9yMaP2LRfQOS31ZxBcHvBH1CF0VHX4DrQq3j2ZoqrnDIj UkINl57BFKAXyuAyGzhGcZ9oOj5+8FGKPXjagIVlSY6CtYNYJ7XbxZNdxQC9ZymQwkqJ Fixg== X-Gm-Message-State: AOJu0Yx89xUGONpGVitIakofy/X9nxb2jJbaOKL/jTdj6RTQRY/7QY+7 FiDilhQRgaoaCfn1NNjP+QoeJze8d1l1GToUBNA1BTidE6SuHNMlgRky/WEUQDY= X-Gm-Gg: ASbGncs71WuGKmzNh1Pqmdy2Bg4XhT7mljMi+kPaKObSxWdQ46ukkcztCuIYysaZtL6 /enDrP5pc4KU6khEDDtwjnd26Qgt/Oka36r41LaEPuAwSgfCGonhqE0LaPf7hkAr+2IB/VCgyju ddg9ZFIl7EGtPmOHHCeJD+Z/oA12TKLSBxzi7kBhNgjpeElkKyJnZSs0dG3twtyKfGgPCfu1aUI RTHqIpeI6LA+THBq3ZNF+WGpMWIV1ubat1zuYqcRVYLUj4TGKF5hbiovNME7h1ovGUGjZ4ISfz7 /7PuB+wqPGS6nV79Xw== X-Google-Smtp-Source: AGHT+IHIGxlnIT9W1m1496ap5CdNvSqcyAIJOYfXO5RvLWjmiK3vtYAvEomKz83J4zLXKOM8QP8JXg== X-Received: by 2002:a05:6a20:1596:b0:1e1:bdae:e058 with SMTP id adf61e73a8af0-1eb215ec58cmr42346024637.37.1737632349101; Thu, 23 Jan 2025 03:39:09 -0800 (PST) Received: from localhost ([122.172.84.139]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-72dabaa39c6sm12950387b3a.160.2025.01.23.03.39.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 Jan 2025 03:39:08 -0800 (PST) From: Viresh Kumar To: "Rafael J. Wysocki" , Viresh Kumar , Michael Ellerman , Nicholas Piggin , Christophe Leroy , Naveen N Rao , Madhavan Srinivasan Cc: linux-pm@vger.kernel.org, Vincent Guittot , linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org Subject: [PATCH 20/33] cpufreq: powernv: Stop setting common freq attributes Date: Thu, 23 Jan 2025 17:05:56 +0530 Message-Id: <1f5393d54b2c04206afefd521ebdf3fc03004a11.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-pm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 The cpufreq core handles this now, the driver can skip setting it. Signed-off-by: Viresh Kumar --- drivers/cpufreq/powernv-cpufreq.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/cpufreq/powernv-cpufreq.c b/drivers/cpufreq/powernv-cpufreq.c index 8de759247771..0c3e907c58bc 100644 --- a/drivers/cpufreq/powernv-cpufreq.c +++ b/drivers/cpufreq/powernv-cpufreq.c @@ -388,9 +388,7 @@ static struct freq_attr cpufreq_freq_attr_cpuinfo_nominal_freq = #define SCALING_BOOST_FREQS_ATTR_INDEX 2 static struct freq_attr *powernv_cpu_freq_attr[] = { - &cpufreq_freq_attr_scaling_available_freqs, &cpufreq_freq_attr_cpuinfo_nominal_freq, - &cpufreq_freq_attr_scaling_boost_freqs, NULL, }; From patchwork Thu Jan 23 11:35:58 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 859962 Received: from mail-pl1-f178.google.com (mail-pl1-f178.google.com [209.85.214.178]) (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 8AA4220F994 for ; Thu, 23 Jan 2025 11:39:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.178 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1737632358; cv=none; b=JQziuc7+5ycd0dFj+f4F9e1tC+xzb9glwTnEUsUFchzMdME5c8hYDW5C1anPnd1PTGw6D9XolPAp8IDiWtQORidlbO8D+iPFEYtt2oW/hkuB/+ipagrPPAhy3ti0N/T10/JPlK1G6dDoAq2k6KKiXg9wnjJZJoV9m1U868mCjZM= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1737632358; c=relaxed/simple; bh=feCbCIcFx3cOhmMWRrLjYWMUrTUQrRROQKIptj7tDMQ=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=Hpm/bJcAgXMRuOQMoIw6g6MWnql3TOlFHI2UagY8NpbQ/RALOprdM45oPfKuGWPx30EO4rYLKDpMecdV5vKfrMDrVGvrVPAs8iwu45OkDN3MAmRwtBaiv+ntGRFLNvBB2oDizpncsm2Odjx+4R6618qgEDKyZSntBLrFvkc0bsE= 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=zXmpZ6eQ; arc=none smtp.client-ip=209.85.214.178 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="zXmpZ6eQ" Received: by mail-pl1-f178.google.com with SMTP id d9443c01a7336-219f8263ae0so14170635ad.0 for ; Thu, 23 Jan 2025 03:39:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1737632356; x=1738237156; 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=SiUnW/A/sIuOYtot6QrMnnQMyB23bhvBzFaSXjZ6+H8=; b=zXmpZ6eQVfh9c9LoRCKrjdRhZpYX3CQIYuHQRPU/DiMnrMAL56uuYkFM+k1YQVInrT iVjH3fZk7gfnJqZAtQHxxOu/yezLInW0Uop7CcQCghV/VYKm0sgOo/0iXp1POXSsFPdU HoxWQkFJ6pnvP62nk2qmR90MJtF701SmDy/S6U6Bsp9Rmab9aaAJv6J+3g46ZYVSvhJo lyiM16M7NLeJlf5typX0QABLpJ99UbsFVOvN8N13pGc2O8AYVHlwolkQb+grrUNN8nzs o+5llnwqrSrM2nsDh3fPwWnG1bOj0MI5RFu3PbiL4TT1x+kap0YVZTrSy91EO1TEUe4R WcNQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1737632356; x=1738237156; 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=SiUnW/A/sIuOYtot6QrMnnQMyB23bhvBzFaSXjZ6+H8=; b=hG3vifFred4lve7H9Ryp2SQ/wXUfAmVP+RdxWnRdQ7p3CmdcK6fs38z4vC72U94W7e QIWMhFz09W/ZS7d3ZBIMPTeqX/T5YEnH0gAvCDRwYWk+3Ldl7hK1DRgYP0XOoXntOcIs TzMqG+fs5swAUArqJ9Z04GE99OzRDpB350dmeG0FIsuZyA22RJ/BlNroFmxYxDtaNgeh bKcJhgO5ZBk9vMXUnkSco+siV5yw7jY90NXTGbCocKSgviHerHtZ0NFlDStG/wBO26Tz mMwwC7jo/h7g31aq539PCGJuXRrJiFKH+JTP/Mdx+Dl5Ojz0Fw8tyYd5DdmFSS3MhcmZ 1bpg== X-Gm-Message-State: AOJu0YxfvKynZpSQcyb0rkcUBghRuZ7eNM1/VjuvdrzQ0TeM/5WkYtqB 1wR7DBXSyZXSGpzBhMU3XYEBvS+cqL2I66aLfrflL4XOx043+A24AmGzvOOOpsg= X-Gm-Gg: ASbGncvGMqnIHKsHHeTYCwMfBKdQqt5AhGDx0kNqCRUaJEzB5LhaSUA5VQfRKNEcnAt yeLCmxEnd2p0Zwls6OarKwLe+If82F/th7nNU9CWxa8V5Z6keTzPvbqTxfbf/wxdnw+gwPGVrzb iCaLFWYrmTPgPzCrb0P9qyiFvh/Lk4ER1+Gk4coQsIdcmxeMrzIQMuaO5mYbSIh9zumOMpZSpyw yXcu+P58oURWGG/omb8h+uoCwD1wc3iKpHHUagu4HgVjBWWGZATFgCW/UMsoS8isDX0BpTw/EvZ TKWc+8s= X-Google-Smtp-Source: AGHT+IHsz/dPNZuGemgfxRCMc7Wv+q1opoL1kPmm83F9upPwA6huOYPB4w5KEgeEmi3wQhmJChOggw== X-Received: by 2002:a05:6a20:9185:b0:1ea:e93d:7574 with SMTP id adf61e73a8af0-1eb214c97a5mr42403278637.18.1737632355847; Thu, 23 Jan 2025 03:39:15 -0800 (PST) Received: from localhost ([122.172.84.139]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-72dabaa8948sm12851228b3a.164.2025.01.23.03.39.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 Jan 2025 03:39:15 -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 22/33] cpufreq: qoriq: Stop setting cpufreq_driver->attr field Date: Thu, 23 Jan 2025 17:05:58 +0530 Message-Id: X-Mailer: git-send-email 2.31.1.272.g89b43f80a514 In-Reply-To: References: Precedence: bulk X-Mailing-List: linux-pm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 The cpufreq core handles this for basic attributes now, the driver can skip setting them. Signed-off-by: Viresh Kumar --- drivers/cpufreq/qoriq-cpufreq.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/cpufreq/qoriq-cpufreq.c b/drivers/cpufreq/qoriq-cpufreq.c index a37ce051236c..8d1f5ac59132 100644 --- a/drivers/cpufreq/qoriq-cpufreq.c +++ b/drivers/cpufreq/qoriq-cpufreq.c @@ -254,7 +254,6 @@ static struct cpufreq_driver qoriq_cpufreq_driver = { .verify = cpufreq_generic_frequency_table_verify, .target_index = qoriq_cpufreq_target, .get = cpufreq_generic_get, - .attr = cpufreq_generic_attr, }; static const struct of_device_id qoriq_cpufreq_blacklist[] = { From patchwork Thu Jan 23 11:36:00 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 859961 Received: from mail-pl1-f182.google.com (mail-pl1-f182.google.com [209.85.214.182]) (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 0008B216603 for ; Thu, 23 Jan 2025 11:39:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.182 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1737632364; cv=none; b=htxL3+hurDA0XpsQASX8UdswE7rbkgT1qDxbeNbMFEsXKBdP0KXuo/zzxCrWS7RFZ/csld4IGrTQ6Fp6vm6nlF2fWRTgQFVKzTggdMq2DDiQGQleCf/7d1+cQGVBbRIVU5FyLLYxU8qSyoXucdqIBnD2ApIeCwpiBD09/pS1e3E= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1737632364; c=relaxed/simple; bh=VXzi3vQGoGrFGGoCyXxs3yzYdKXJIY2PFnz+CzvQS0U=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=K01PlQ7LDyKP/hY2zVsrAxgJOetJKaBpTjhzl4UJRytL/WADk1F4jRAjnzI4mCwTUQ9iBf7qscMlDyHV6vyoSoztA87b3BmAEtb9Qf5JXz5wajqvKDUvGDmIsNCKUctbbhClWS4e6Zak902qCXLyme9Ho+wDnbmMrva3ZHS/0vE= 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=Nu2AC3Ua; arc=none smtp.client-ip=209.85.214.182 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="Nu2AC3Ua" Received: by mail-pl1-f182.google.com with SMTP id d9443c01a7336-21661be2c2dso12528175ad.1 for ; Thu, 23 Jan 2025 03:39:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1737632362; x=1738237162; 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=MdX1SYlxV+BuSD5MpIWAGjJb4j3+Z4eC30JBUmG9pbw=; b=Nu2AC3UayPXF+ScZ+VlLYNfUBBO1RN50K0T2I5+aSVZMpCfbI+9lSr2d5lYzxkJhYi uz7xWyIvI5q5QLIJG0SOyv32gKNXIuJJEDXcifVnYz3WIPgi7lYVw41MOBU9bzG5I94c LZosnuaNZyXtAQkbz8ROQofDL21zaGOA84+dOvmNnefl0QnGlQGiVlRzBN+YGuK+XVwA jbKQ5YDSZe1cBYj6Xu/WhTu7QVfRwxHNIUItJzw5HrncHYTtNGJWBzLZnLhz/WN4bBNY Q1u0O71Bzrdd3WUIGwK0mxrSEYTcZ5Nd6AbDkzFiE5Gp7n4jSHF52ayriql18lehgpFt Lbng== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1737632362; x=1738237162; 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=MdX1SYlxV+BuSD5MpIWAGjJb4j3+Z4eC30JBUmG9pbw=; b=Yr8hpZm/Hbv3EgZQ7SoV2fwlIBQamQEPAcDUtdnft0Dqe2bIFj6dlBJWOEjgU/d9j1 lF0LW+yiMOWOUAYOzSuv5iplMAa+lcmRaWzGLSVwT3mnYIGRV1SMvV1YKcRtZ4OMRHNW iW+38H2dEcv4vyS3H3S1j1qfpA+ipd1bJX4fHOVDtz/JXdhuUeCmn3g+TaulJ2Q9oIkG dLvaE+SheIao+7d9GhGG4MwWmktTGpR9nXsNsXJFdqZpMAGwhXwxbZwaVNQXZQZhyWFl S0BF5K55Te5SbFoyOH+WlSSNm//z4+exjJ04ZVCvsMa88cpSdZ41OhtJ/SD2Q8vhD7Ox 6GYg== X-Gm-Message-State: AOJu0YyHLTTg1Qxz5AClbF9oW45lzYrwV/fJY/FNodDRaAOv1ON/tI94 0vSkwtZuTXJithWrBZc4U5nm7EVJ2XLqN0Xwa0U+Z+8b6BSfBu2Pu/NuZhr52O5ZxXeM/bviKFN A X-Gm-Gg: ASbGncvtsgLkVch+/NAMbJhVdL0I0egvc68+E40OYrTQI0qeKofWXwnI6LlkeWuf/5S ffP3l9Ld7lNtCAEqjzLIMOtRwqtlC6BpsEi9VAef/gPgbkfaDX7f88IB3Q55DulDuLzgJRrNzrk oTFKxjXWZSvoRhN25wPh5QZ+QS2guU3pQLFmCK0np/ewLS1X9WUWwDWcjjR2WYIplMX1YR8Kbp8 Y237g0E/Axbz9q7aFlb76FOANagtlAc+ZMGPVj5bIU8kgvZeo8TGYVYquQ/+9D9Heo7tnDTe9gP 3ZEI0i5VBWSk773Dww== X-Google-Smtp-Source: AGHT+IGErAbE+NwTrY1AINeQ3Si6MPxs7fVewd1+h1jBQl/h9wJNR/mCHaoI/Y7H43GtjmK7onqLBg== X-Received: by 2002:a05:6a20:2589:b0:1e0:d0c8:7100 with SMTP id adf61e73a8af0-1eb214701c4mr46281215637.7.1737632362526; Thu, 23 Jan 2025 03:39:22 -0800 (PST) Received: from localhost ([122.172.84.139]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-72dab7f2a38sm12882604b3a.21.2025.01.23.03.39.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 Jan 2025 03:39:22 -0800 (PST) From: Viresh Kumar To: "Rafael J. Wysocki" , Sudeep Holla , Cristian Marussi , Viresh Kumar Cc: linux-pm@vger.kernel.org, Vincent Guittot , arm-scmi@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH 24/33] cpufreq: scmi: Stop setting cpufreq_driver->attr field Date: Thu, 23 Jan 2025 17:06:00 +0530 Message-Id: X-Mailer: git-send-email 2.31.1.272.g89b43f80a514 In-Reply-To: References: Precedence: bulk X-Mailing-List: linux-pm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 The cpufreq core handles this for basic attributes now, the driver can skip setting them. Signed-off-by: Viresh Kumar --- drivers/cpufreq/scmi-cpufreq.c | 8 -------- 1 file changed, 8 deletions(-) diff --git a/drivers/cpufreq/scmi-cpufreq.c b/drivers/cpufreq/scmi-cpufreq.c index b8fe758aeb01..4a3ee59cb771 100644 --- a/drivers/cpufreq/scmi-cpufreq.c +++ b/drivers/cpufreq/scmi-cpufreq.c @@ -171,12 +171,6 @@ scmi_get_rate_limit(u32 domain, bool has_fast_switch) return rate_limit; } -static struct freq_attr *scmi_cpufreq_hw_attr[] = { - &cpufreq_freq_attr_scaling_available_freqs, - NULL, - NULL, -}; - static int scmi_limit_notify_cb(struct notifier_block *nb, unsigned long event, void *data) { struct scmi_data *priv = container_of(nb, struct scmi_data, limit_notify_nb); @@ -309,7 +303,6 @@ static int scmi_cpufreq_init(struct cpufreq_policy *policy) dev_warn(cpu_dev, "failed to enable boost: %d\n", ret); goto out_free_table; } else { - scmi_cpufreq_hw_attr[1] = &cpufreq_freq_attr_scaling_boost_freqs; scmi_cpufreq_driver.boost_enabled = true; } } @@ -395,7 +388,6 @@ static struct cpufreq_driver scmi_cpufreq_driver = { CPUFREQ_NEED_INITIAL_FREQ_CHECK | CPUFREQ_IS_COOLING_DEV, .verify = cpufreq_generic_frequency_table_verify, - .attr = scmi_cpufreq_hw_attr, .target_index = scmi_cpufreq_set_target, .fast_switch = scmi_cpufreq_fast_switch, .get = scmi_cpufreq_get_rate, From patchwork Thu Jan 23 11:36:02 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 859960 Received: from mail-pl1-f175.google.com (mail-pl1-f175.google.com [209.85.214.175]) (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 DAF3D216E19 for ; Thu, 23 Jan 2025 11:39:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.175 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1737632371; cv=none; b=jaqP/H6kbNe2rP2dlqPvT44ezgzZoCvNz7nEh+pugUu2vPq5LEt86CNDASaw5gGZF5jSolELsTA2fp3aNxSXSm9C3VAm5wZfLq4gnaXxumIBBU0vwfqFfVkLVUmLZackp5g/FV6RImFmcA7cNIo7LR4dbTNjZNO/15yhrlMXKTI= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1737632371; c=relaxed/simple; bh=tVzpkvRHob2oScLfzIZzugzDEZoNPWNMmUeVbL5KCJ0=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=X21r3C3B981j8w+GIKVV2tajMzCw6etM2auyBzcOkjoQCv0XnLCG6APMgvrmGEtmCcPUp/pmUkgZdNliOYbSLA6JAVyUN2n/7CJP6OFlc9iptT09x8i0oXza66avxqrjaL5GU/cewecs8o/WWRQulYER4am2qnuldyaqd1EVFWc= 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=eX2v4j1x; arc=none smtp.client-ip=209.85.214.175 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="eX2v4j1x" Received: by mail-pl1-f175.google.com with SMTP id d9443c01a7336-21636268e43so15826495ad.2 for ; Thu, 23 Jan 2025 03:39:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1737632369; x=1738237169; 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=GGe7MqKM2mmQTSmw67MYMu+5UndpwYqCm1PZBz2cmzo=; b=eX2v4j1xsKeOwKFtMm0YaFu8E94TF07F5GBbPH1ptY7qIqMdoDAen1gPHejl0hBmL4 MfOUrKEb1+ksjaCjS8nnCOTORwI5xi72Nhmv0UuCLDPRyZH603wEOYSvyfrBNppe+i0z AGgmNOlV9gmuXYOtvGX964TT14QjPGUOvmhvf+NDrkKTn1eiWt96oGWJGXkXnTkarRQG JraWXHExOPFNmqKw2T2Bi6DuNa5P46EKwJ0OAVZhYEWvb5WjUMxgVPoC5moPv5P2VaG3 kct+KJLgY+O0PrH8caxAJzGmoTzTouRhdKk3JRUcr/1bwn3K2F7cOH1+oF3ePL0T9fMi N5pw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1737632369; x=1738237169; 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=GGe7MqKM2mmQTSmw67MYMu+5UndpwYqCm1PZBz2cmzo=; b=gBYreg3uPEzjXzbu7vMvAbv/wkFdO1hQQbepYILb6M9IcPEVwBv8oSNYe6NvVWbqjg FS3fT+oYTf45f2jPegbG8N2Vu+0osm3T1i3rut2V/P+AhQ8NK3Oqu60L9F97ZeVUOjBR ZUyIdcEdrecfm49sicVTQ9EADQZL+WkgS88JsCBDDlREdtiHpzlG/fsIBcBnv9xAFCZt SCJvSJ0D+DljqPOqhM/fH6C8kPdRTW9/Y4Jany7w913yIH2tJzwLg553Rkr0t262RNUx l01Sl4dsDUTm8m74rIZytnPtHk9SP9bmHs4dLT8Ml9JEV2BWaAslIp2ysgrQa9kQxDwM oq3w== X-Gm-Message-State: AOJu0YwFiXidV8PTBZ/n/FSCKa5kBKaDcLmRMIKzQUDFdvFg/2Uza1cF aYFZZOkv7Z/lhCwdcde9D7NEQwf8pVn5NczP0tEdg6GSgBvqFYpqVSBDgN1D6/U= X-Gm-Gg: ASbGnctg/ZYLLBW/urDsEasKIbv6cMsK5BcpHYlRF9/+rVaY3Ht0s1SRBcjgYandC7s iIofI+LL7cFU4T7vJ1WpsYgmbq1z9TKRHo0OhdO9kayhLApQp/Yt3NY/vazBBqcv6v3B3b2VBJH t84yE287rAn2NYHX4V4UeHfi5iZ4KYNtgENHVsA7RlHAewk9ik5pCWPjuFj0xNoiKIfa1scmGKN RM8cU2JXOc7lB10UgqH7MvzdzBDJAw4wqaJFI1AxJQPZ31BSYwTsuuiKZTnF1DwezkIiZgg20ek h9i4ntU= X-Google-Smtp-Source: AGHT+IHG6Tmy6vaGOWJamV9GkohlZ7OBqGg9X+O+3mNupP6Bb4a45cYQLihph+6Wmco/QdsR7Mkr1g== X-Received: by 2002:a17:903:41c4:b0:216:2d42:2e05 with SMTP id d9443c01a7336-21c35539f08mr371019405ad.22.1737632369164; Thu, 23 Jan 2025 03:39:29 -0800 (PST) Received: from localhost ([122.172.84.139]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-21c2d402799sm111476555ad.221.2025.01.23.03.39.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 Jan 2025 03:39:28 -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 26/33] cpufreq: sh: Stop setting cpufreq_driver->attr field Date: Thu, 23 Jan 2025 17:06:02 +0530 Message-Id: <47b6125c790b37393b2c35e9924c1b8a8fc6fff7.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-pm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 The cpufreq core handles this for basic attributes now, the driver can skip setting them. Signed-off-by: Viresh Kumar --- drivers/cpufreq/sh-cpufreq.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/cpufreq/sh-cpufreq.c b/drivers/cpufreq/sh-cpufreq.c index aa74036d0420..9c0b01e00508 100644 --- a/drivers/cpufreq/sh-cpufreq.c +++ b/drivers/cpufreq/sh-cpufreq.c @@ -151,7 +151,6 @@ static struct cpufreq_driver sh_cpufreq_driver = { .verify = sh_cpufreq_verify, .init = sh_cpufreq_cpu_init, .exit = sh_cpufreq_cpu_exit, - .attr = cpufreq_generic_attr, }; static int __init sh_cpufreq_module_init(void) From patchwork Thu Jan 23 11:36:03 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 859959 Received: from mail-pl1-f178.google.com (mail-pl1-f178.google.com [209.85.214.178]) (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 1857F216E2F for ; Thu, 23 Jan 2025 11:39:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.178 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1737632381; cv=none; b=sA9G6XZ1yl+4x6Rg/BG6aqI+6v5SneWtlJjNru+NzCnI+Lj8a4tXvUOQbmV4W66OuGRx7PezGUciwC4blri2LLsB9e/3WyKXBUXBxLjqk0FY2bn7tY7hEspZTJNhPTzQdjH06EEwuA+0mab4dYU4/Md71i7vxBEesCEoU596oEY= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1737632381; c=relaxed/simple; bh=9oOev658oCheE+irPhEfKW32u9AIDGcsZDIGTbry3tI=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=FrKX4OTwNp8FTZCnZR3zexYu87gdUfQrk1nGmmg82yIVY6nh25QjFsuN0Iif7kpDqaIU1KvTHQjRyJDiT27XAk6nW8tdu+XnG66pRg5XeADqb2c4jmT7tW40wN/U58xS6JiLPBZKKyb/poDR4T+9rAUESEpL918oHU59QP2Ue1k= 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=AmuA34BV; arc=none smtp.client-ip=209.85.214.178 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="AmuA34BV" Received: by mail-pl1-f178.google.com with SMTP id d9443c01a7336-2164b662090so13513605ad.1 for ; Thu, 23 Jan 2025 03:39:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1737632372; x=1738237172; 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=F1qoMOIo+OLN2OfUa7PaSWk3Sg/XRX4qZfCM9AlKq4E=; b=AmuA34BVruhkv7BlNBzt6ZAzbWlhodGNnQI9B+AaMD5Sun99gKKIqeZekQsRsj3sWk muYfeyNvQRwEsON+sAJScHmKeUKuYzyYbGsyqLsNHaX9m0CEAl1ouTyN5pmbXzhTuzgq ZuZH8CfqDbsiBuo1RR0Z75jLKspqI2juRbt7shmTgVTzNwub/Nbg/LuUH0EHY0gby9OV rLF+gP8OR1YIMCDt5QeABwZTm6wUqUzKwLXtCBHymYKuRGMF2Q7wGcRfNqdj8FSpb24o 8vm4gX0xXE4OAaoJDPXRzqh5kR9MG0ihsV798JutjUJgQv4+sXhAl3jBlQ0n50sWRuIP QIeg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1737632372; x=1738237172; 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=F1qoMOIo+OLN2OfUa7PaSWk3Sg/XRX4qZfCM9AlKq4E=; b=XWiZjc1T3imRrfsDoIiCYIpZwnYJ2iWXwERkVkpmMmGMRZJp8I3XZ7UZR9cz5gpJrM ex1n7ykNoH3EN3VS1DtMWAYYMLymKmbFUqEqdOPqrkGeA3y4ZYYedJEtKd4z5Hm75oxc zYzFytLR489ItGp1scs9qPp+voudiYAt8rEPxSDOoR3Lis7ZYlcNKiPJNg6La08BbRiM 52flBgHkXIt2Qg7qBa9ZTSGS/Y2vvkVNJfZd1QiohUrYJb4ahw9FbNal03VZ/Ikbrrml mJjQuU1Fp8I/jkahIdA0srZYbV0mBT4rOVCLSWTQDJK5rvys61lq3fYwRECri8QVOp3N 2R8A== X-Gm-Message-State: AOJu0YzCTMDNwGwlANPWktu1uvHaVDa1rCF1rTsC1LWoy1nYMCT/eWH3 ut3gTTsIyfAuRG2rFyIxp8L7nUHgr0ESu/pmzC85FzOyCGjW24sPJVRIT9SVuAo= X-Gm-Gg: ASbGncu8MHtroNUZyBInuoKeHVak5rmirxpqiDO6JUXTmCHJGMboO0EhfA1iuC/gP2h 03SVC4Kno5AgWtSpj4CiFBa4DJlJ/9++yTyyGF7JWo6wZNox6qtAKmDS/vGDTwMcwruYpYmxbP9 mQHEM4ZJILdwNILgNSEFcv6Rr1rRlZamQrO18i1S5zyoDDj181WWfUM7qa5sy+Zj1ECf5igfyEs XtVdaXla+jaQlxKNjbDjbULzvoCxbY/G1fSDBR/NbEe9RFTYYRaZ/8GxFTXWsrHHVgSGllvgoMe zmTaFdo= X-Google-Smtp-Source: AGHT+IE1AhkQc7qL6VS4zFBoS2qj3rH+icxtjNX5Hc7Cx+vRs4GTv/u3rSA4LANdaudIKlcxq8Pbag== X-Received: by 2002:a05:6a20:394b:b0:1e5:a0d8:5a33 with SMTP id adf61e73a8af0-1eb21480ef0mr43895785637.18.1737632372479; Thu, 23 Jan 2025 03:39:32 -0800 (PST) Received: from localhost ([122.172.84.139]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-72dab848321sm12935134b3a.76.2025.01.23.03.39.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 Jan 2025 03:39:31 -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 27/33] cpufreq: spear: Stop setting cpufreq_driver->attr field Date: Thu, 23 Jan 2025 17:06:03 +0530 Message-Id: <24443216b7d69eb64d01441eb8d9bd0e23e8981f.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-pm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 The cpufreq core handles this for basic attributes now, the driver can skip setting them. Signed-off-by: Viresh Kumar --- drivers/cpufreq/spear-cpufreq.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/cpufreq/spear-cpufreq.c b/drivers/cpufreq/spear-cpufreq.c index d8ab5b01d46d..707c71090cc3 100644 --- a/drivers/cpufreq/spear-cpufreq.c +++ b/drivers/cpufreq/spear-cpufreq.c @@ -165,7 +165,6 @@ static struct cpufreq_driver spear_cpufreq_driver = { .target_index = spear_cpufreq_target, .get = cpufreq_generic_get, .init = spear_cpufreq_init, - .attr = cpufreq_generic_attr, }; static int spear_cpufreq_probe(struct platform_device *pdev) From patchwork Thu Jan 23 11:36:06 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 859958 Received: from mail-pl1-f181.google.com (mail-pl1-f181.google.com [209.85.214.181]) (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 ADDD621772B for ; Thu, 23 Jan 2025 11:39:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.181 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1737632385; cv=none; b=Ajcqv4pyae9FvrJWEWk6JQ3TzaxdNQlm0Zq6OWuTPyrShMtWe8UiymReLRu9P3sl6EeECEEAIXdCd+t8gKHNEfalAtX5xD3DBuLSpw7QJVtvjU4uJvkCrbSc6vuti8DzMwrDrpk6rg6nCrpq3Z8fbx06lvavacmTc3UHk8A2eFY= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1737632385; c=relaxed/simple; bh=eofYrMAlyFUOfvE8J67A4zVSwYQVPwRTWfHU8IdSj3k=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=gIWh+i7mUQoISq8NBQe9JV5WEapro3Obr2iLuoY3L9eKo3GoGl0sCzEqMENHXJYjryteXZk+SGuaoIcwIDIj6yqxlmGkH61rgqKbUATuJhNe9jQVE7wukbyPqh2jPExhDg1wSNxRNlanRG48ypUNZEKJh/tr93GqVY2Exxo81PY= 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=nSVzSVr9; arc=none smtp.client-ip=209.85.214.181 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="nSVzSVr9" Received: by mail-pl1-f181.google.com with SMTP id d9443c01a7336-21649a7bcdcso12449715ad.1 for ; Thu, 23 Jan 2025 03:39:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1737632383; x=1738237183; 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=rb2rqEJd02k20/AhSog2v3OCrcQN7RS+AjxhMFEwgGo=; b=nSVzSVr9LWoRKSUoUvqJC/IxrMNirQbDC17L8GxOxCuv9avTouguHE0jLem4VYFzDu LiuJD4yjIwTbdUR6MfeGSgPTUbl3CPpPR+s02cGokrzSzUSUnmosd6sO5gSvCX0QsMUY CHhEJjNmEeSRQKRXiuun/IoZPMpfRHZ9+ZAOZ3ozaIQvXrgNDljsFM7wHV7Hf/caxlQv tGOdehTCtJs/DczHX/WYa1wDrqU7mMKtF2wFqw0bUjtowY66Vgly4mwVuaZkQ3D0J6KS PKhUSBikExEaE2vYNpA5XZ0gItdnesxLxsT31K/xeImB40VWXMpEhL8jyTxk9fozEB65 ZGFg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1737632383; x=1738237183; 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=rb2rqEJd02k20/AhSog2v3OCrcQN7RS+AjxhMFEwgGo=; b=vjkj0camddU5bvM5GxuvU8zNol7jpNQM522Nnq0ysmqaiAYtw+2RzAK0rPjXaQeJud AwtiUq/WcqrxgA4jt00zUesjmTNrg13SZJoftS37ui/Lia1w5aC98QInKrWEWMBJp3vs cbKfbDUs7kWn6VHxjevGqKBKteTepB4Nx0I+IeAwxLtGhqN1wuB786w5k3DJUgO9zkik XPad/biSKe3Uv9gNbNurlbQ9psfu2z/sD42lbKqxyk3sAbbMsRVAUETYFPZeHQ/oFStF jriZJXmbzs0NtSq58dk6yPAweunbGkf8itchFzPBUJOo0nPHsq3iKqNgoGs8cer5VWJR QrTw== X-Gm-Message-State: AOJu0YzWuK5PFQDhCJub4OvCTtFGv6ujyZ2fFdTow7lTqoDggL7ey+jW YXZfrUl0jAhdYvG690a3IndVHRagChFzZmhF2E2GPGNoUmDZJgS6mszA1H0PlV0= X-Gm-Gg: ASbGncsSyxZDa2EL57wxFzHr6aVt3Xd0gOX2V0I+Rcwq6mnHWTpy6gfNVmG5ZPG8vGY Gg5FTlG/VGUd+Vu3u0Dj99qy8oNkg7cU67GjAadagPwMT9RzJCSITagXADsBYE7DN2naCKMzfXa 05xTvrDLnX3OJU2WIc+DPcdC/TkJgIlIImOC+J++xAo1CHfDsT1Ht3+z7NlVC++1298MMq54KtL xxM0bkLnjTC1wqfsRVn/Dk3ojK8ofBEPnT4+f05FLdG2zqYg1s6tyht0xErrBycuaVO/yqFwO7F 4ZJqvPQ= X-Google-Smtp-Source: AGHT+IGfdcmFFMWXsL9R37HEeSmVQ+IjPSu61yVqhm5T58o74JeCbGEVeItG8c5Wzh+RQYFtC1lURg== X-Received: by 2002:a05:6a21:7895:b0:1e8:a13b:3885 with SMTP id adf61e73a8af0-1eb215fb145mr44955603637.35.1737632382985; Thu, 23 Jan 2025 03:39:42 -0800 (PST) Received: from localhost ([122.172.84.139]) by smtp.gmail.com with ESMTPSA id 41be03b00d2f7-a9bdd4f6e5dsm10604521a12.59.2025.01.23.03.39.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 Jan 2025 03:39:42 -0800 (PST) From: Viresh Kumar To: "Rafael J. Wysocki" , Viresh Kumar , Sudeep Holla Cc: linux-pm@vger.kernel.org, Vincent Guittot , linux-kernel@vger.kernel.org Subject: [PATCH 30/33] cpufreq: vexpress: Stop setting cpufreq_driver->attr field Date: Thu, 23 Jan 2025 17:06:06 +0530 Message-Id: <62b1f43c0fe1fcedfeaedee9e7d8f18953bfe36c.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-pm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 The cpufreq core handles this for basic attributes now, the driver can skip setting them. Signed-off-by: Viresh Kumar --- drivers/cpufreq/vexpress-spc-cpufreq.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/cpufreq/vexpress-spc-cpufreq.c b/drivers/cpufreq/vexpress-spc-cpufreq.c index 0f86cdb7ec8a..65fea47b82e6 100644 --- a/drivers/cpufreq/vexpress-spc-cpufreq.c +++ b/drivers/cpufreq/vexpress-spc-cpufreq.c @@ -471,7 +471,6 @@ static struct cpufreq_driver ve_spc_cpufreq_driver = { .init = ve_spc_cpufreq_init, .exit = ve_spc_cpufreq_exit, .register_em = cpufreq_register_em_with_opp, - .attr = cpufreq_generic_attr, }; #ifdef CONFIG_BL_SWITCHER From patchwork Thu Jan 23 11:36:08 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 859957 Received: from mail-pj1-f42.google.com (mail-pj1-f42.google.com [209.85.216.42]) (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 8B94F2185B4 for ; Thu, 23 Jan 2025 11:39:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.216.42 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1737632392; cv=none; b=QFKBLsi8RMY58tsCcm5RAaf9BH6IFk3ePanp8qPIXGRgGEZxE0F8QN1mZ8DvPscX1kcO3lSLe5egeNlx9cXPSyAQ3CgXVS4VMz7s2iD2z4mD48Bc6oZnzLo7hJzOJE/TZdPvxwXWNk8NLx3IP5Jl/M8okeeSLiYG70Qx3U4y73A= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1737632392; c=relaxed/simple; bh=g+5UVqausj/S8woGbcTzNjS7nHTJDZhAgMiqGXmWZmQ=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=CC1WZfkS8PS3O3BUnVnWvD5YWUlX0/5EsP7Z9D8v7PlPKNSjGMIQAmPAWuIGbAnoF/Dh5wKide2E79VIBgcEpsW4smCXSJJJkqhWzN1uNiNARjYvdYcWEVL4f/o2I3hPzpfgoaWCzkazrChGtWML77+o/7cD4TxzeU7vLtlEaVI= 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.216.42 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-pj1-f42.google.com with SMTP id 98e67ed59e1d1-2f44353649aso1177503a91.0 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=N6xwScvI5tCCpunWGi8LErgbmH12koZI2NNU52AcyKOnGRoio5B5w12aLpyWEWhCIS Cr0sh53OX2dae0syAtoXsW/RclNdSQ6X/wIR7xZsy8mO8UbAD5vzRSAe+SSb0B01msKX tKi02oZGzo/6vxv/pn1bRjI6gsHlCx3mj194sXNhRhQrU5NgPYtysnkjF7o+AxP5dhZI nEJtU2is4idmshY7XFjJqfnGCPqLr5qEDD2WXQjR3CbCesYfLvhLub8mSW/bgn87QCRp BVu8nJJ/pbeMRPs8SBK9vYT8mQUsiXNGQSdCINkKGP7FIeSu5+41qSUmdVI6sssYI//P 2AEQ== X-Gm-Message-State: AOJu0YxlK+XwJK1MDosDO4l/b/sHLFLvg8XqOrw9iioPudWhogRFOXVR 8LXolC84cOz0Cb75/CROGlD/3wQAe5btDu/cfbE3CS3TxMrrXVlyjDL9uFYKtYOba87taNRyS5I K X-Gm-Gg: ASbGncu6suW2Q4pB/VR3NmHN0jyoR/OcqVKWkbt269MpDexW5wW+LFRPFabYSqerBtd n34m+DxbPpht9QYcK50AbbfQDZAJO15/I6dSa46JeGljU8uAi6n7/xWBj/LT1ELniT6dwqJVCXJ p0A7PFCYI8Ksbr2Z0R4odQfkOPAOcOERXmwp/nekC7EWERzhrm16oGqZrkk9/HKOTJIVvQWfpKC X2fdcXBJgZLWl6QZ1rz+SIHjgg8QBB0Hl/Dx/AhQFRjJ1IcnYmbrLPzSIb7gjsPcmrVdZvcxTM2 SKMvZLo= 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-pm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 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(struct 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); /* * scaling_boost_frequencies_show - show available boost frequencies for @@ -288,13 +287,6 @@ static ssize_t scaling_boost_frequencies_show(struct cpufreq_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[] = { - &cpufreq_freq_attr_scaling_available_freqs, - NULL, -}; -EXPORT_SYMBOL_GPL(cpufreq_generic_attr); 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); unsigned int cpufreq_generic_get(unsigned int cpu);