From patchwork Thu Jan 23 11:35:37 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 13948163 X-Patchwork-Delegate: viresh.linux@gmail.com Received: from mail-pj1-f45.google.com (mail-pj1-f45.google.com [209.85.216.45]) (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 CBEBC381AF for ; Thu, 23 Jan 2025 11:38:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.216.45 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1737632286; cv=none; b=Leb9RYTG2zXHgDqpjXKK0NqNh0BccnQJx309XtMKp5sqHV8GkXHDxOmzQrLercEn9BwQ+GKSuAFi7AFUV7vbnYVbLq5RMjnixemn8SvOCqhzf8mqUmuVO1XLUEBNmxkurp+yuTOW6eWkSk5CysYeFOoEYrSLk6KKf/X71DOxyUw= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1737632286; c=relaxed/simple; bh=MbK+HOv1UjD+nx0NPWZX+6e2GlX2Tr4E6xZ7vZCDKeI=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=gaQdDTp/zQ6b5Hm2pRJ14Rwh0zIej4aY8duFzMK/2FTJVt8/WWU/MJDiDUKaEk4VcLaPl+jsoLSu1UeJpjp22yzMkJeh9RIH90yMNBL4YgLkLkwrLgz7JXtE8LpDQ7pKUmLJdO74tbqMzm4BgCljILwyYHZG/taXCHY/wgpyDxY= 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=JVcqKHoT; arc=none smtp.client-ip=209.85.216.45 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="JVcqKHoT" Received: by mail-pj1-f45.google.com with SMTP id 98e67ed59e1d1-2ef6c56032eso1102918a91.2 for ; Thu, 23 Jan 2025 03:38:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1737632284; x=1738237084; 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=/BURswXzavwBUBL8SbuuWIsmTTY6DE3SqcuzUjfY2Q8=; b=JVcqKHoT3RfMWBUOTCT0stlYLnEhDNayuahPk1b/zRzqtLueXlsp4UJI0kgLb81W+f DkZgmgLW57uhJGg3AoFK8uV2K8YTF+LoLMgssXF8DB2R6qGJMFQp6D+cNavP7cj3Mauq hZ569cDG8/yqEhunVlMXzrNj82mj6V4IBxOnzOzGHo5XfaG7WgA25SV3EOqh75a+HAWt hnHkQxxl3jbmz7DUU87Hhz59pf+iDAHUaAZoiVdyKdat/gQn1Z+DzDcZKfvQFgTZY6n8 gGKvx4Vdxd3Ll5T7oIJhfZgCPP/f0sRKgM55q7xC0BjGWmxtc9FosA7Jce5neeq28A2H ii0A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1737632284; x=1738237084; 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=/BURswXzavwBUBL8SbuuWIsmTTY6DE3SqcuzUjfY2Q8=; b=vJDAe+9ehHSgemJDimpJuJtBwP4dZIq/06JJ+RIbcoV4cVmHnxLa7476ds71+OR9IC 1U0DyUAVB1irv6ieVwiGCKmwtA0yZ1cg89Dh1gSxclCrbZszdL+kA4c+5a8RBSg5kLOQ oKvBUhQfDRINXyHlU/7mHDj85XImWsI5jRIXpe4Ugq6eCwhVcoEB5zspuCGlU2JYnSni 2T7MrwaqaWFb/1Mh8HYHINHJvJt+RE4L0GIFHwSMwZHqilUb4RYLnlcRvlNYQAKFDzBD Kxzt1UBzKk9HNImzdGREO5HU5F9n14R7/3sMd4aVUl8q/7fwWXgU5AGOfj7vwm1t+UYG ST0g== X-Gm-Message-State: AOJu0YwxCPHQcnJ9RBHQuozjFNV1dk3hbKDoSTW1PZttcrYORk4GVjNJ zNWiny/yxaH9L12Ua3Rui8hjHRA0gUyJ1MwrZUJLi7oZfs3Gmwa0OGUthOw4Ytg= X-Gm-Gg: ASbGncsvG9o4AMxXtNoL+zoH5MqnHGqIBLYCrDK0ULVIVsX/6lRcVWJ2xn+mhPRDNol wTjSIPJ1RKwUaledXWHfgNv+vUyJCA0+N7ws3z+BXUBkmxEJfBeIw5RusJoHYxR3MIpT/WoJIXw jseiD/36ExQ5o1xnO7CgKdu6FuuXtpjxUB7x02g/t6LT7+CrwtIDnUCVUK16Kvik36Ay7TlNZFi lonHET+mzrcN6t9i12XQT8G8HYQ34cjC9Rea7I6w/XNvGv59S6LMtl/1ff6LAuzJQp1gIQ8n9o+ N0tEWlc= X-Google-Smtp-Source: AGHT+IFgWLpTY7shOq2EOCNH+GW2Avz6xkQDFCiT2sjaDUy/K+cOgLyTwIWgYwmf3aC2gRP7McjPdA== X-Received: by 2002:a05:6a00:21c8:b0:727:64c8:2c44 with SMTP id d2e1a72fcca58-72dafa68820mr38895508b3a.19.1737632284107; Thu, 23 Jan 2025 03:38:04 -0800 (PST) Received: from localhost ([122.172.84.139]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-72dabaa751asm12843539b3a.162.2025.01.23.03.38.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 Jan 2025 03:38:03 -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 01/33] cpufreq: Always create freq-table related sysfs file Date: Thu, 23 Jan 2025 17:05:37 +0530 Message-Id: <22b68afa4ce5a0a2e77bb3a08e1cb7ac75f70f72.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 Currently it is left for the individual drivers to set the available and boost frequencies related attributes in the cpufreq_driver->attr field. Some drivers provide them, while others don't. A quick search revealed that only the drivers that set the policy->freq_table field, enable these attributes. Which makes sense as well, since the show_available_freqs() helper works only if the freq_table is present. In order to simplify drivers, create the relevant sysfs files forcefully from cpufreq core. For now, skip adding them twice. This can be removed once all the drivers are updated. Signed-off-by: Viresh Kumar Acked-by: Rafael J. Wysocki --- drivers/cpufreq/cpufreq.c | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/drivers/cpufreq/cpufreq.c b/drivers/cpufreq/cpufreq.c index 1a4cae54a01b..973bd6e4bdd4 100644 --- a/drivers/cpufreq/cpufreq.c +++ b/drivers/cpufreq/cpufreq.c @@ -1058,9 +1058,31 @@ static int cpufreq_add_dev_interface(struct cpufreq_policy *policy) struct freq_attr **drv_attr; int ret = 0; + /* Attributes that need freq_table */ + if (policy->freq_table) { + ret = sysfs_create_file(&policy->kobj, + &cpufreq_freq_attr_scaling_available_freqs.attr); + if (ret) + return ret; + + if (cpufreq_boost_supported()) { + ret = sysfs_create_file(&policy->kobj, + &cpufreq_freq_attr_scaling_boost_freqs.attr); + if (ret) + return ret; + } + } + /* set up files for this cpu device */ drv_attr = cpufreq_driver->attr; while (drv_attr && *drv_attr) { + /* These are already added, skip them */ + if (*drv_attr == &cpufreq_freq_attr_scaling_available_freqs || + *drv_attr == &cpufreq_freq_attr_scaling_boost_freqs) { + drv_attr++; + continue; + } + ret = sysfs_create_file(&policy->kobj, &((*drv_attr)->attr)); if (ret) return ret; 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: 13948164 X-Patchwork-Delegate: viresh.linux@gmail.com 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:39 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 13948165 X-Patchwork-Delegate: viresh.linux@gmail.com Received: from mail-pj1-f43.google.com (mail-pj1-f43.google.com [209.85.216.43]) (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 3B22920F08F for ; Thu, 23 Jan 2025 11:38:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.216.43 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1737632292; cv=none; b=OhNe3wJX9Zde0tY2tNBLu5r+EpYhTY/ZBN3B2WRrElKXEqRK462uCUt1U0dU3VzCLs3ztyttkrm0CHCLSHOD8rNVE7k0xK4W7k6B5tTjs/xCJuSz53mk8qgW3ZEuY+1amN3IyT4Idg++YHta2sf+V5RAwcM/f+5ZPwUaNBHvx0I= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1737632292; c=relaxed/simple; bh=3EqTMyJtqtFHPVycbC3qEEeT/l6iBIOW6lgp64PBNuw=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=XsXvU1d3iSHuwMv4aUa1NhqfPHBeS1lfNSwpQR62tcLb6ylc9gOhpf2x2KxI6+ANPRFVLaJoXWDqAAIMGnVgvfQzot3DQfe2++j21/KQrx4xdEc/kLQZqLBA4efeNWELdLCK4Dz6Xm+KC6hVZkdfBGPs4BmWuc6oODqNykE/kRM= 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=kgU21g0r; arc=none smtp.client-ip=209.85.216.43 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="kgU21g0r" Received: by mail-pj1-f43.google.com with SMTP id 98e67ed59e1d1-2efd81c7ca4so1142433a91.2 for ; Thu, 23 Jan 2025 03:38:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1737632290; x=1738237090; 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=idxb9Cgj6A0IQcTpE1yY/ZRCz8Sif6aWzEjBOTW3qPc=; b=kgU21g0reVnJosswbAEEdRQF74w/VlBhIUfM4KGa4GL+lqw19/8DBCqKXpNJdhUljd buGu+K/oqlWnT3uhHJTvo7+CFOJvut3/dtsHAkfjv/0HxCmAxZUWoPPFDCBWiL8rhDzp 77UTwrVuAWbEvNxHwVSB3aMGOQslGy6rpDpKvLJNrhqlOuT8NkJxZOpMttbU1+1Nw1qS 2XRNiGMxp4oAwuUsiVXISdJ+IwQc9lnYBkX9LRmn9CizzRMsHdXL2qskc3sVNGkDord9 VTcYMi0rv6kd202ONDxUsgqAq8lGn2sMSpHL2BpNrQ/HWkRG5oQsCnBL9C3LksZck/QE WfKQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1737632290; x=1738237090; 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=idxb9Cgj6A0IQcTpE1yY/ZRCz8Sif6aWzEjBOTW3qPc=; b=k7vUofVfKVIi+PkTD9tQBzeG2S6vFh+V0JnYcg+/tzBDIM2bSnOL8NeXPBAgPGYQo8 uDD31VnHy3Rf4CFqK8m1cKx+htmwjvJrH6PZyB+xbnfeqWRKTs5tBOzelKPqT5TPsuVH MnxR3ahUCosvKbN7lRSJuRnT/8YDsAfnE851pJxyV77VIQbCn0D8VJfQRweJ5TZFe6pD BPHoMY4YCctvBtZDuY0BK0De4sIeSySbSGkzQfhakAxIouklDeHu/Wfr0D7SFkRw/iBm x5pIl9lT43tuXAipxIGjpc554OdlCFkfdyuO2Pt5vQ+eWNiomuuO6F2uHuqyjUUjRiIC AAOw== X-Gm-Message-State: AOJu0YwNKDXpIIgqzQANyH1+DRgbKDbc0L5iv/cai/1dXCjyPJv6ELz8 rhuFh+j9UIjJ3+ibmvsA+qTahD5zQek5/RsXUDezuaSdjvGJzdls6HHfrISZSCU= X-Gm-Gg: ASbGnctjL7hsRG6k+MWmcTxEwO1rGRxyV629kYVb44Wx2FAJpRZ3AXAb60A1ai25LVh GEU619OpmecEBspMtnewr8Y2GUItFJWmv+yBDU6oWarbFIkFldosAivaUGv/fzeh5AeY1pZBLbR GmEbL4+04X5ZWBBgMME6OPEElBStEn7osp/AD0uSiGw5v+WsZxa0QvH16tiGccWrOKrCtIsn8LH o1JutPwuDcv4j3ll9CUsQip3ymS8AEtml0fmwVxf8p4JWqn/WJ4Ae1cX46MPHqhrC+DrsnZmHIG 58bmgS8= X-Google-Smtp-Source: AGHT+IE9L9+OPWt3mEh1svIod37EsVQ7Yc2Xn42XCSXFy+PzNQ8SIdzcyKM0TGYQVNSLzMk6808RdA== X-Received: by 2002:a05:6a00:1c84:b0:72a:9e3c:920d with SMTP id d2e1a72fcca58-72dafbe6a98mr31890478b3a.22.1737632290558; Thu, 23 Jan 2025 03:38:10 -0800 (PST) Received: from localhost ([122.172.84.139]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-72dab9c8e95sm13152379b3a.106.2025.01.23.03.38.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 Jan 2025 03:38:10 -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 03/33] cpufreq: acpi: Stop setting common freq attributes Date: Thu, 23 Jan 2025 17:05:39 +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 core handles this now, the driver can skip setting it. Signed-off-by: Viresh Kumar --- drivers/cpufreq/acpi-cpufreq.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/cpufreq/acpi-cpufreq.c b/drivers/cpufreq/acpi-cpufreq.c index c9ebacf5c88e..dcffddba5af5 100644 --- a/drivers/cpufreq/acpi-cpufreq.c +++ b/drivers/cpufreq/acpi-cpufreq.c @@ -936,7 +936,6 @@ static int acpi_cpufreq_resume(struct cpufreq_policy *policy) } static struct freq_attr *acpi_cpufreq_attr[] = { - &cpufreq_freq_attr_scaling_available_freqs, &freqdomain_cpus, #ifdef CONFIG_X86_ACPI_CPUFREQ_CPB &cpb, 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: 13948166 X-Patchwork-Delegate: viresh.linux@gmail.com 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:41 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 13948167 X-Patchwork-Delegate: viresh.linux@gmail.com Received: from mail-pl1-f171.google.com (mail-pl1-f171.google.com [209.85.214.171]) (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 E0F4920F98E for ; Thu, 23 Jan 2025 11:38:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.171 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1737632299; cv=none; b=JQUl5eOFSasqrJMbJbjZy7BV9PuogO8+KVkyJBcNVvy70LeKuupTdaemEfRDnqYh25eEL7Hx9A4DqsmlDiDn6WAOce6WtrPjnSMxS+7VsP2zENpesUMl/Vs0PJgaUjouVxuJiW8EnWQsQkizQsSH6JOLdUIwdl8vXuWStBQf7ik= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1737632299; c=relaxed/simple; bh=pNTexRJWIf3fZZzwBCWXAepE4JkfhvFWKAeKA5yIT1I=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=gExDZpnvLg/kzoyuh/BKOTepXo5YtcpNjUaVSPs12qhJZ1McszBrkPf1/vDObrA9zdfg705GeDIkiEkGZ2lTA71h/j11F9fZEyQGhcfaGOxQjUgmhlyaArjm/BSIuZ6BPVJPqBbMqA7+Q+JufMzO7JBQeNMz3aIcWIs0YQ1vbr0= 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=LlFARTKw; arc=none smtp.client-ip=209.85.214.171 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="LlFARTKw" Received: by mail-pl1-f171.google.com with SMTP id d9443c01a7336-216401de828so12336875ad.3 for ; Thu, 23 Jan 2025 03:38:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1737632297; x=1738237097; 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=tSFP0rzuKci4fmBdM64F+0SOn2uhNTB/qBnSXaiAWeU=; b=LlFARTKw2bCU8Nz9btuFdYE8aPLkkphD+9xCG86/R5PQu8JseUObpnhI5TUIeyo1vs 6W0fbQe4vyu+Zt+sPG5rUuXyCnivAXQPJHwQBsBM0RlUSlA/k9rGUiTcZpjUSsEeSRzg C8SCmlsWJWDgFeymvW9s3cVOHFQ9QjswQmWHdY8xYJpWq42CocGiuxZUwyCF8iA3W2e/ AXP0pz9ybSTjObUkWJJf+1JA15Tsnfe5qCw9AWweHZv2OH+PvJTOOKgUUjGRD4sfD+MI pltWga1kZHwEO/SeAt7vXhBm5nNjidO4BMy+pv54L2QRXDi+nbr2+CjwLxonWamyh/9G 4JOQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1737632297; x=1738237097; 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=tSFP0rzuKci4fmBdM64F+0SOn2uhNTB/qBnSXaiAWeU=; b=nPti3YB5CxbtLewbVLhb+hb6s6JSunn7JwM/uEZJiuD3s+sHUF7Bp/ANixZhIvVzWZ +iOpzHelzUwbF60VBkcm+KIMkMvmbAylSvNUfmdUD3D/r09XTh21GyMpIjcaTVn8f68V xOPzzWlnd9AWkWBDQ3pnyYU1Q6Tu0nt3JvziN2+EJyrBF9UFkn0OWs/si7ec+6pNFW+o 0tnzhgdF6QnWy68h8SqTwNLfXezn0RGVyDRosxclTKGbPMpTgOpSJwWt2Onnbrpphpds BnZZbF5G8bWPSNjGVLGP8uNzQnkRkfftzMJLf5En4HBOlCBtfhRXYE1z7GDfE4dc+01g OYTw== X-Gm-Message-State: AOJu0YwNO9TnWfBfggtomGSNlv4DbtIuYwlsQIE0vMzJkY+c5Qu6jpQU rrvZZ+KOwJfC2V00UIZ/dnWoLkV4/nKZgIHILjRTTMl0xOa+ZIULihidzynH0NMPE05qQvY7tMn e X-Gm-Gg: ASbGncuTQAjReG3sMtcl7Ylip/8bWEm1gi356SoWPQcBYLAHqkrsanbf4JY6rrMYR6J nV3lodfLGW7Zkpeutj3ferQLJ69fDd+2ctAKKlbcLfIO6JW+efw1cpzsFSdVlGNWakyYate6GZt qU2WkVhTdpAyYy7KnDrPdGitjK5Z41BL1KH+EPO5uAhcNrDpqc4iS4xMKhBgoQmc2eTx5tkHD7l 7Cwb72iihpACZkSqpp2nL0P+XFAJm+2o0JuxU1RvkF1wlHqbM+LKxa/fdjXC13exH130IZPT6PH Vzg90Dc= X-Google-Smtp-Source: AGHT+IE5jdOmMEuUvJMGIentp08v5PmGBgmH8uckcFgvnSzhfckoJkoSjIBVmln4p0rR+rIkdNgFzg== X-Received: by 2002:a17:903:1c7:b0:215:b75f:a18d with SMTP id d9443c01a7336-21c351bd440mr382125575ad.11.1737632297308; Thu, 23 Jan 2025 03:38:17 -0800 (PST) Received: from localhost ([122.172.84.139]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-21c2d3acf2csm110506705ad.121.2025.01.23.03.38.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 Jan 2025 03:38:16 -0800 (PST) From: Viresh Kumar To: "Rafael J. Wysocki" , Markus Mayer , Broadcom internal kernel review list , Viresh Kumar Cc: linux-pm@vger.kernel.org, Vincent Guittot , linux-kernel@vger.kernel.org Subject: [PATCH 05/33] cpufreq: bmips: Stop setting cpufreq_driver->attr field Date: Thu, 23 Jan 2025 17:05:41 +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 Reviewed-by: Florian Fainelli --- drivers/cpufreq/bmips-cpufreq.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/cpufreq/bmips-cpufreq.c b/drivers/cpufreq/bmips-cpufreq.c index 17a4c174553d..36051880640b 100644 --- a/drivers/cpufreq/bmips-cpufreq.c +++ b/drivers/cpufreq/bmips-cpufreq.c @@ -150,7 +150,6 @@ static struct cpufreq_driver bmips_cpufreq_driver = { .get = bmips_cpufreq_get, .init = bmips_cpufreq_init, .exit = bmips_cpufreq_exit, - .attr = cpufreq_generic_attr, .name = BMIPS_CPUFREQ_PREFIX, }; 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: 13948168 X-Patchwork-Delegate: viresh.linux@gmail.com 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 Reviewed-by: Florian Fainelli --- 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:43 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 13948169 X-Patchwork-Delegate: viresh.linux@gmail.com Received: from mail-pj1-f50.google.com (mail-pj1-f50.google.com [209.85.216.50]) (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 44CF421128D for ; Thu, 23 Jan 2025 11:38:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.216.50 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1737632306; cv=none; b=qFQmcmbSrxKYrkESx8y3BQZVrZk9l6sdHwYgMuv0d8pOtpyrfZxVPHrOCXLftGz08c5opBObFbPgnoLDsNnd4dZH30MhqM96pLcJj1C1JjSP6ar0ifljyQdvVAIC7K7CrF9w0TvWODUUP6w2t2N/KZlphPkFZ3LQAYWkl/a8IJo= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1737632306; c=relaxed/simple; bh=ZueQfCMECx+kI05WZhaPypKs9tljAe9z2E4ejICVPJs=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=jnYTEJJYepNAkWoNTFk6o1vXOq1WobJY5MbIf/8WxUvCG3P4P7+HWU49NZ1KJWJczMytTTg9fTVTXG/m3ead+JWrVk+LoVSNHR6/tNYTwVA64+gwMW8iIAcFrf5deUtsukaQ6gmY7mppGGj9RBH5zA/6Fb2ZELoi0uIU+XNtuOw= 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=Vx3QtFar; arc=none smtp.client-ip=209.85.216.50 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="Vx3QtFar" Received: by mail-pj1-f50.google.com with SMTP id 98e67ed59e1d1-2f42992f608so1245540a91.0 for ; Thu, 23 Jan 2025 03:38:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1737632304; x=1738237104; 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=/vWStfdhwz/DXffVrkvPN3mnj9RUVL7HlMAJE5ve61A=; b=Vx3QtFarjBLP2vmXCBdeRZZUkxLNnuAg60Bv9dTUXAxqebR8DJSOIIJ8fXer9A3gMl jN95pchUF2tDRocF+X5rQC8xV+PcU82/rRTdvcizMwHJupvCmPsh7t/fjsLPtIi3XmbS JOkH+cODrQlMqobBf3RjYlTBZqUMzZJJimJfW/c7ktqu4XJQG15Ds7rWMqs2XZrQp3Yt UgQsTRrQ18xZpa2/V9exhiSePTIScz72/DhGzSilRswUS2G2FKtA4qDbCQVSOi+s3JG+ Aq/5RfdZVxwtc8ft8mgZ+BmrJ26DOjW2oaUOG0/JhSTHjEBY4ctLQlPdhq/vIzUTdEhR vxEA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1737632304; x=1738237104; 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=/vWStfdhwz/DXffVrkvPN3mnj9RUVL7HlMAJE5ve61A=; b=rSWjlpQlqq1UAdEwsrHFjZJV+kP0pCpxQfAvSHbfWWroC+tEwWgjCuSeOu568HINWO C2cihQlQpBTtHEwESTwflEIGMN7PlpHGYCK1nb4/AZpEFYLK0FKoaABN3XlC03wVNryi rBKaauc8FNCrMLLZC8UtINs3uMm+qTeB4YsgZKw7SAaGTGiyryvdgPiN7Rz9n8EUqSon iwQnyF+c8izgnBc04FHMjbWMeIju2PbYUQkItRpJfVHe55LYC19EvYaoZnPN7bL564Op HzfBPl1lrEFKqleH6j3ATB8TChneeyrToKRWnz4bXDjc3FsyuYcwnVWREK2u0z6UwIp4 CgGA== X-Gm-Message-State: AOJu0Yzv5IRS0Ster1c6SJGIdAgTBHE93FkQMcgd9f99N55CQaMCg7Na csKj/X97ASoP5MpHbQtD8OYHMd4Ur3/Sg8TYaRfvCe361ky99JEzRQWwSTyTTjs= X-Gm-Gg: ASbGncuLj2iNSOTMDJufaKlXkiKVjc/hFu1DKzImyJsTEhRyWKb2YZUw1NIg4jikQlp yagC508+rnVzDa614bO/X1NjTDJYTBlhfAFjFxEXfY1Mk8LSb8F1nZRKT7q6Bm0/LOmjgE1ATde drmHwjuswEdz7t8cWKciTiX0Sze9X21FZbJGGfMbHfv17ehABC+yU1P7RnJ2dx780bPW4rIMCFU PwZF50P3RD6E05yOcqxQH3l8N04JWyFJMeMx9KeS7+vDxATGuQOOC/Is6xNJMFatzObvwAuEac6 32Dx8zU= X-Google-Smtp-Source: AGHT+IFuDqxjxxazYMnLc94WXF9eSOvTNEROLXLZgmXpoclSdt9+o3HboHu3L6335uB7BMgfmBgY2A== X-Received: by 2002:a17:90b:4d0e:b0:2ee:bf84:4fe8 with SMTP id 98e67ed59e1d1-2f782d69fc6mr36897321a91.30.1737632304537; Thu, 23 Jan 2025 03:38:24 -0800 (PST) Received: from localhost ([122.172.84.139]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-2f7e6a7df25sm4029815a91.14.2025.01.23.03.38.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 Jan 2025 03:38:24 -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 07/33] cpufreq: davinci: Stop setting cpufreq_driver->attr field Date: Thu, 23 Jan 2025 17:05:43 +0530 Message-Id: <98e575271e22d7386b9e1e9858ff2000776b50e0.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/davinci-cpufreq.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/cpufreq/davinci-cpufreq.c b/drivers/cpufreq/davinci-cpufreq.c index 8736be3a06ce..2c277eb3795a 100644 --- a/drivers/cpufreq/davinci-cpufreq.c +++ b/drivers/cpufreq/davinci-cpufreq.c @@ -101,7 +101,6 @@ static struct cpufreq_driver davinci_driver = { .get = cpufreq_generic_get, .init = davinci_cpu_init, .name = "davinci", - .attr = cpufreq_generic_attr, }; static int __init davinci_cpufreq_probe(struct platform_device *pdev) 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: 13948170 X-Patchwork-Delegate: viresh.linux@gmail.com 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:45 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 13948171 X-Patchwork-Delegate: viresh.linux@gmail.com Received: from mail-pj1-f41.google.com (mail-pj1-f41.google.com [209.85.216.41]) (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 E8691211A0E for ; Thu, 23 Jan 2025 11:38:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.216.41 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1737632313; cv=none; b=MaNkFsKRnSCHkO0D0KEZ1ETHRakVZBxpEHo8GZqypDEeCBJSk12i8gaguQX002uzpG+zL2t+IJEFVkISGcNMJaHjfdFtIaeUL1R5mt2D3LGYZ23PJ7RXEZ1RzVAbH5rA8j3xCO3OobP/CepiMo0HptZVqzr7Kbfl/xFIuXJqosg= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1737632313; c=relaxed/simple; bh=THNC8n9hqdQ+kzmG3RgwjlwfPOuFsB8/C0FFHQfr36Y=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=lVHEXP7vFRiKuZ9bsAj/Mxz9y2zaoNOcUEBn/KfpoSafyL13UWcglpQKViKlI+Zwk92qzthQxK7yrbttAcOVZxt7hMaLnewnxt+u3ul50wY4mtH94n9JtLmFB2/0vuVAh731u7rVrskIk3CGM+zFstwEBkBL3FM4yLNQAYCQITg= 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=Sp1ICBkb; arc=none smtp.client-ip=209.85.216.41 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="Sp1ICBkb" Received: by mail-pj1-f41.google.com with SMTP id 98e67ed59e1d1-2eec9b3a1bbso1188964a91.3 for ; Thu, 23 Jan 2025 03:38:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1737632311; x=1738237111; 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=T9f/kMsBtgnH6FD3SBlZFGa8eDXW7rw9RTFttNA9PE0=; b=Sp1ICBkb4bOq2sITiNPYVry9pvzxxYArojQwx112LyW17WzxHnZ6wh29ULAAbwO5T3 7koV/Ck2AoY4c7OsL4/34L9mBpnahcFglQaBjbL5KPs9zpXnqqq+zFHIOVtIzP8B5Je9 4e7Rm4WdgMhQY2vJ+IRn0ITsJfvlYQ/fdhHzA+eyDpUROb8Mch+hCODDKokr2CDybcZQ 2Wap0V5fxvsXE0U7vW0+cEhltw3Jqzk2AyqsYy2x9JlupcCQ4mJW7yyZjfoRWzoUC026 T2G7RcFhvJFodmKBVmbcNRve6qa4sAfCoeKVKytPNGYrXF4CGveQZ1Q52Q05qS/0hZJM DEUQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1737632311; x=1738237111; 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=T9f/kMsBtgnH6FD3SBlZFGa8eDXW7rw9RTFttNA9PE0=; b=ZBm7Gc4QwPywTZnMsl6HSjkTvD+gANrSAPDMKl6HAipL77I1vZp/eSCZMKggFM+4FI I27C8PGdxsAVOvKhdBxK+JAP+hDCoHLekijGwRKHpdyHx3Gk42n945m0VUeGqnYBrKG+ QLp6ybieCMCxpTPeC7y0HqofaIbaspBWLG7HbO7deZNW7z4WS8VWKW3Z+eqPEFQlY62r Fxx4sRwncCobSmFhSZKu0Csz9cPt+ybqXMer94+9VAgPckfXqA23ms5J+1/EVq+eZORn VIcLmXYO8fl1WPSw/YZHzGcIOJj4N6kWmd13oXDuTfsiC18th0i09r7KLnbUecGyYWxI k+6A== X-Gm-Message-State: AOJu0YyHAZFNSa5uVX6OFtZxq3UUwQgzUqj4cdydzhg2iHKWxICF8Zfy 2fWLdlQZ2k+ud/8rR+jMpe6N4Wa0XkF1YJYUEqVuN0y9EzuR6kCg7i+adStdvpI= X-Gm-Gg: ASbGnctWBmX/J20Nq760s87FbXpag6LKcAJ7PpVmo8WrbDAeheifvyg7/O93LmnpPUk n26eOb0dtCGspEvUdcMQcCml/JECjyPZxnuExlLGqM4djHaZnvtyDV0BBBKoF78TEH6b9ndCenK CcoDuCqpxmsFQ44DKyPdZkRTUQNeC2dq85fUdNFU2JhxpUYbHvYenppNTe6ZhTcdfSOMMErvWkZ rohpYl3fdh/0t+u9xzut1uVXxiF7SUH4+NMoRQJAvwlYJfuiWbnw6kfiatMp/vA5gqcpqfKjWyZ 9V3n3Fk= X-Google-Smtp-Source: AGHT+IHcc6cJOWSdjAR8ms0RMJfjcVOJQ3pnBAUSPrtKAPzCiALqJYum2MVWf1fzB1fOvmO+PFUsuQ== X-Received: by 2002:a05:6a00:21c3:b0:72a:a9d9:5a82 with SMTP id d2e1a72fcca58-72daf8878c0mr37819280b3a.0.1737632311336; Thu, 23 Jan 2025 03:38:31 -0800 (PST) Received: from localhost ([122.172.84.139]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-72dab9c8ed3sm12764611b3a.113.2025.01.23.03.38.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 Jan 2025 03:38:30 -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 09/33] cpufreq: elanfreq: Stop setting cpufreq_driver->attr field Date: Thu, 23 Jan 2025 17:05:45 +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/elanfreq.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/cpufreq/elanfreq.c b/drivers/cpufreq/elanfreq.c index 4ce5eb35dc46..36494b855e41 100644 --- a/drivers/cpufreq/elanfreq.c +++ b/drivers/cpufreq/elanfreq.c @@ -194,7 +194,6 @@ static struct cpufreq_driver elanfreq_driver = { .target_index = elanfreq_target, .init = elanfreq_cpu_init, .name = "elanfreq", - .attr = cpufreq_generic_attr, }; static const struct x86_cpu_id elan_id[] = { 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: 13948172 X-Patchwork-Delegate: viresh.linux@gmail.com 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:47 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 13948173 X-Patchwork-Delegate: viresh.linux@gmail.com Received: from mail-pl1-f171.google.com (mail-pl1-f171.google.com [209.85.214.171]) (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 9765920F07B for ; Thu, 23 Jan 2025 11:38:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.171 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1737632320; cv=none; b=sOouq+9aNoXPoJpcNa/nt8cpbZaxueGg3bHYgLMuq2K5KjNCrniNQzmiijoqIC3QJ9VHH1JVCpXliOm8AwAJsgYmObRs7QjTnjvHTv1Ezp1eEZyBtrntfvD1/V6KaSkE/lZURBxtSUxhFINKK3GIfxfUs/Fgit44Otc1jpkwZpg= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1737632320; c=relaxed/simple; bh=6DtFcJYmLtS0XPomO373HL7zqfxc6DRv2DtbO6xIpbk=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=DhhZOqB8Tv7GgmCJkPI1aLl04j+amilpL1x792RQrzeab3Hi/GYRevzjrQ+fUb94F0ZKLza3XbwcuIJKGXVUYthaR2Zgl0r7tCQi0S7qeC9/S+FdEGSKvYjAWPu9pKGJEK2XWuF1615LQsFR8Xvr3e0qG1zxbhSFBUrexgsU7fk= 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=NWHY3iM/; arc=none smtp.client-ip=209.85.214.171 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="NWHY3iM/" Received: by mail-pl1-f171.google.com with SMTP id d9443c01a7336-21644aca3a0so15670185ad.3 for ; Thu, 23 Jan 2025 03:38:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1737632318; x=1738237118; 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=C//8xYSNLR6Oizw+j6lSO/S2euOwsVxZ7R8vVZI1QW0=; b=NWHY3iM/CeaNj5wiJe2rhoPnLG5dUTHY5soPYe05hWGjIFuOzMnQ8xdksr1x6udsDS kWWNdareBx2w9rBltpPtAztiDBS8BKF8nnN4ZAMfJ3TNGNfMRBcxKy+7eweJObXfDsc1 0rDHcLebtCGUAgh76fZpuqgkeqx0DqAzWDNEUUqf83jMlinvfcmTh5bmCviGF3klpJYr 0JSu7uZI4IIcjjWbIpoQK1mHwKsGf5lLxQYAGxBv8O/ZpRNZM8TzcdxRYVQAOD2uu31J S1BngBtCnMagxf3n5+xzksFE+MvajMWNiJGy6vfJbSkycZgA87jYQhG3UifM2Iqs1uuf h7lg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1737632318; x=1738237118; 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=C//8xYSNLR6Oizw+j6lSO/S2euOwsVxZ7R8vVZI1QW0=; b=u1EdzvoSUkGepQ5Q/M+E0E8zNZMl96ToiwNd4gzbEv3ft3mOYG31ly2R6Imtu3U9PJ v7XnC+worNoxWH9x7ufxQvO2YSi7g2JAXdnNPBgDig5TJoUPD7YJjKPYA00R58skVbu5 M+sAEmg5HL+57rc+IKuNUm+E4aL2p4ZMULUqXLeQwmSvDTwtVc05pg1Fcdx66is15uPB cBC4EA3/5xQZfaYqlTfI+6DVs+5fMfMEokNgR/P1rF9A4JX7+q+/megDm81ljYQt8bcW zRCliRdo7PDvjAsh2snHZ9Z6USSCbja0R1ZgxLm9XWfvYXsbriK9jAo2Mfa0azO9qNJI GJqg== X-Gm-Message-State: AOJu0YxNBJJKufFu6ET7mHxEPmI2AyohMjUsLpyh4Mj6FFEHi9apSxpu K0UJf4JoNt1ESegcl/XdOvupc8PVWbsXOTfPNIf3GlnU0qWPTVcYM6W4HBDOEqg= X-Gm-Gg: ASbGncvEX2n5MnezkVMVAQlOOnTQcfx2ihFQyom2eflRZxF6rRqvW5XY1+/v5UjVmua EnisSzwszKO/D8AXYOXTsRhqxEX/yFCm5CgKD3kVBGU1P6w/TV/PfT1RdNbO5Xvymku/j3ewGsE ZIRCIaF8J7bUGHg24at2CB/S4o5gbjkw9gLtqJ+5dxXYt2LTSiFyml5hhXHq51DYuGFv+sHMtjC uy8JmKQTQ2G8un8Dx3z01WWO7PW3E630devh8yaLtv/s971kMx0c52NLm8xTvC45qyUqv36DyFB wt49WbI= X-Google-Smtp-Source: AGHT+IGKhVdwKWlFQhhgZxT0fvm4HefE1GFmObSRKUGf2wcrJhga758g56vgLwzrjCe1dxxNLU26Hw== X-Received: by 2002:a17:903:22ca:b0:215:603e:2141 with SMTP id d9443c01a7336-21c35511d01mr416669115ad.19.1737632317985; Thu, 23 Jan 2025 03:38:37 -0800 (PST) Received: from localhost ([122.172.84.139]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-21c2d3e09d5sm111215965ad.170.2025.01.23.03.38.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 Jan 2025 03:38:37 -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 11/33] cpufreq: kirkwood: Stop setting cpufreq_driver->attr field Date: Thu, 23 Jan 2025 17:05:47 +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/kirkwood-cpufreq.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/cpufreq/kirkwood-cpufreq.c b/drivers/cpufreq/kirkwood-cpufreq.c index 312f2654d1d5..24b285cbeb8d 100644 --- a/drivers/cpufreq/kirkwood-cpufreq.c +++ b/drivers/cpufreq/kirkwood-cpufreq.c @@ -96,7 +96,6 @@ static struct cpufreq_driver kirkwood_cpufreq_driver = { .target_index = kirkwood_cpufreq_target, .init = kirkwood_cpufreq_cpu_init, .name = "kirkwood-cpufreq", - .attr = cpufreq_generic_attr, }; static int kirkwood_cpufreq_probe(struct platform_device *pdev) 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: 13948174 X-Patchwork-Delegate: viresh.linux@gmail.com 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:49 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 13948175 X-Patchwork-Delegate: viresh.linux@gmail.com Received: from mail-pl1-f172.google.com (mail-pl1-f172.google.com [209.85.214.172]) (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 4DF2521325E for ; Thu, 23 Jan 2025 11:38:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.172 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1737632326; cv=none; b=KgKzFHum3TygM/ecYpdkXp4d72lSboGX+Vl9gr+BaVauGsboj0W2vYmEJS4qrwQee3vKzk48hcnk907YBiC+d32UmwcHPWJiJkzJDTrKPeSt9pfHozHrrIqyJ/dvm06naW0QcpIfVbIKKC6hquxqp2Ec3acesl7zzF6Cy1wkYrs= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1737632326; c=relaxed/simple; bh=WV84G/RB5+7f1rTZu4Rt6v1dVd1mWE1RlukKepVDMOg=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=AOfPUEkLsq+/VIFYF9Ag7vCcWioMdD39aYXuzsprU/9kPJjgt8k8rqwm0mSwsnERNOipkIO69DLWJVyVQgTFDr+xz91h0eHaNvUr6gf7aUGRkFotGgiKwiOSQfd4K4sg/F4oUhr+WfnDbIt8IdUsiDjdiUZSDsHbok6/AZWz9/k= 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=Wdn7woYJ; arc=none smtp.client-ip=209.85.214.172 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="Wdn7woYJ" Received: by mail-pl1-f172.google.com with SMTP id d9443c01a7336-216728b1836so11507495ad.0 for ; Thu, 23 Jan 2025 03:38:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1737632325; x=1738237125; 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=dPQFhXLLMXODhvNoypMAGj1uR2YWHafKwP+IehwFe5U=; b=Wdn7woYJL9ZSp22i6X1PZMk6vjuOmO4Jeio+YsjMlGFjEcjxQ3P0V1AroUVQBf50Yi GWEmHxeXYiTpJa9G+trWKJFxVFjTI0hK+T2dF3DzCrh4kg58RrLyoNat6ffIfrddqaro VOmdzU5B8IXM8C7YhhNDpMtW3i9927hZUQBpizCdvwydng0N275yl+47bzBTHqZEepc8 Lsw6KnLtnk92Pxkh1A11pKCvKrvfXFjXP4aIvYbYnK6W8FmxpK25ABBbICt729niaBJy rWkRP9DBBag3x2plDB6rjunA12xGBxX+eyo0NVyxIfbR8lNyqOVqaioMzc09ALIoQY2S 8KwA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1737632325; x=1738237125; 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=dPQFhXLLMXODhvNoypMAGj1uR2YWHafKwP+IehwFe5U=; b=UxWcXExfZEAnRhEtB7420GtbfHtNQL1O/94fwINFvQxsqmrRz2xKWkqdNuu5tnx6nF 6hCdq74pN77+zaBdjMaajTBkuhgbeVJvqNw3Qz/xuiqVD6amn7+EwbynnHqIBQ+KTJBx 2owjNig/39ijalDFPqNgoSYqD3P1UUPsAe3XRJibdBjnYQb4k8HGxZsPCnzJnq9knqxd 4bxSCbFS9+e/3lvNLr+Ck9Ka8sjik2SwI1bO1klfiBl870xGJjEeSKhUKCSEL2OTY4gJ GHmPdhQ6BoB6/ehYG8GyHRry5yoS4I57LULZr8XlYALGtkQeI6xm4aQ6flfogqqm1XO8 I/CA== X-Gm-Message-State: AOJu0YyR9BjxxgmlnT3w5RhmhiUIfs+Vt4KgoSEC0rCbMVK/ab8GVBEX jkl7I2TERpIRNSZUM2kzFw52uuTJ4zRuKYa7Ohd4IpMtwLIKF3TLA2Xybu5yP/wXQYx0OaiuNTh i X-Gm-Gg: ASbGncsAc3VqFqmFSrAhSSG54iwaI0lfEqymyrIGkGsuQiYX7gZA3zEW0zPgK1xxvXx iXhL6ggjVUWJmy5w5R4S0a5+Xo4OREin1D+zlVt+Ty912cQFOm2VZWgsFCthy/52A62PhccUMX0 7wIV/ZD42XVXsSmPGHMaNI1xUISWGXJNHZcuyU7o6/zRRwcnsT0AB9bRGzHc+gMxta54ZEaqHHo cPl8w/hPPIl0gsUzqprB7U7bgndsSzKEK22QiKDjxwsrLxSTUCGHsvak4q7trm2EkEBgdjwhZBA ZnQ/+y0= X-Google-Smtp-Source: AGHT+IGH1rgrIO+s+Y/sZ3xBZQHUbxqMwBuZRbD1wDrTeC9bj2qH2sxuniFd3GYQRJetgoOSm4ug5w== X-Received: by 2002:a05:6a00:bd7:b0:72d:b2ed:8788 with SMTP id d2e1a72fcca58-72db2ed89dbmr24987717b3a.10.1737632324738; Thu, 23 Jan 2025 03:38:44 -0800 (PST) Received: from localhost ([122.172.84.139]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-72dabace1bdsm13291546b3a.171.2025.01.23.03.38.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 Jan 2025 03:38:44 -0800 (PST) From: Viresh Kumar To: "Rafael J. Wysocki" , Jiaxun Yang , Viresh Kumar , Huacai Chen , WANG Xuerui Cc: linux-pm@vger.kernel.org, Vincent Guittot , linux-mips@vger.kernel.org, linux-kernel@vger.kernel.org, loongarch@lists.linux.dev Subject: [PATCH 13/33] cpufreq: loongson: Stop setting cpufreq_driver->attr field Date: Thu, 23 Jan 2025 17:05:49 +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/loongson2_cpufreq.c | 1 - drivers/cpufreq/loongson3_cpufreq.c | 1 - 2 files changed, 2 deletions(-) diff --git a/drivers/cpufreq/loongson2_cpufreq.c b/drivers/cpufreq/loongson2_cpufreq.c index ed1a6dbad638..39a6c4315a60 100644 --- a/drivers/cpufreq/loongson2_cpufreq.c +++ b/drivers/cpufreq/loongson2_cpufreq.c @@ -91,7 +91,6 @@ static struct cpufreq_driver loongson2_cpufreq_driver = { .verify = cpufreq_generic_frequency_table_verify, .target_index = loongson2_cpufreq_target, .get = cpufreq_generic_get, - .attr = cpufreq_generic_attr, }; static const struct platform_device_id platform_device_ids[] = { diff --git a/drivers/cpufreq/loongson3_cpufreq.c b/drivers/cpufreq/loongson3_cpufreq.c index bd34bf0fafa5..ea516b939c44 100644 --- a/drivers/cpufreq/loongson3_cpufreq.c +++ b/drivers/cpufreq/loongson3_cpufreq.c @@ -337,7 +337,6 @@ static struct cpufreq_driver loongson3_cpufreq_driver = { .offline = loongson3_cpufreq_cpu_offline, .get = loongson3_cpufreq_get, .target_index = loongson3_cpufreq_target, - .attr = cpufreq_generic_attr, .verify = cpufreq_generic_frequency_table_verify, .suspend = cpufreq_generic_suspend, }; 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: 13948176 X-Patchwork-Delegate: viresh.linux@gmail.com 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:51 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 13948177 X-Patchwork-Delegate: viresh.linux@gmail.com 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 6CBE42139B5 for ; Thu, 23 Jan 2025 11:38:52 +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=1737632333; cv=none; b=OnYSPZQlRIFgrLRj8p48JHcMdqJuLWt3t23dC2VhGRXUJP9DE7pm6Vjcn54Qd3NCn6Iv4spiBiD5Kf5KZNeXvRwgTpDFxtBUgZ7IC+rk4b2D4c/e6/6f3mIk2coAV34xFu8maKw6JnlNZvPt6exlv+e0BSRVMC2y0o44NRMGHIQ= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1737632333; c=relaxed/simple; bh=igX5ZUgBwCdDAnj7x2Moq6k+WA2yw2v+2BGH2OQnJUA=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=iESJRM01ITQafD4qW/veV3m46VXbSpiEguExWhGrnRFFPgx2MECmIi3n9P/BsucanobIuheLdeHqVcpDmPSpm8oPVqYh8nj3AOiAR0XeWjtBrV639A4XugwVkPHudy0BSGaXkWCaiiXlogbptdSreeFhUjgGlQFA2+sGnb5UTwE= 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=EYxmbj96; 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="EYxmbj96" Received: by mail-pl1-f176.google.com with SMTP id d9443c01a7336-215770613dbso8686235ad.2 for ; Thu, 23 Jan 2025 03:38:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1737632332; x=1738237132; 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=VjQgNBAFe49xaXae+rYQPhtfMBBIQd9+kyHPZESGBA0=; b=EYxmbj96rmhMrbBc29uqC9oECp7T0xnQfCLeAycuWyned002/xy37+bzKaWAxgqKQn gXifJkSeoWK8hDRE0zh80AEBL1a/fatR+mnaVv1JaZa+n/ybNxfI9am6zSho35MrD2n/ qn/tMQMWrSG/rQYkvyU0X9sO+d3bh4DKjLYS+9FMXbjHxgejC1/1ixyGQODVvctKg3M1 /BuPXxU0x+lm50ebnfzxvsJ5u917sE//PuqCZsVzuua8qmVnMrUvVBQj3+vXauAFjAIw An0Y/CfVntlCdHyYc7pF4a7ywFDRgn1gD2y6C4sym6i5hmHC19kdkwFRevh0qJAl8PSq xfPQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1737632332; x=1738237132; 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=VjQgNBAFe49xaXae+rYQPhtfMBBIQd9+kyHPZESGBA0=; b=iSLEb7kLOSBm6vhxufbka6uE/cAGRW5gW0AHEPgJhxh4xFm8cj9NYll2spaU7DhyqJ MYh+8AFGK3cwjUDxoZuCxmqxdAc43DwXpwK6YY7p39gri4kiRwJFhQuZhjkJYOETHuoZ A8dXCm59p7WdR2Gi75C5/9dYxIsps8pU6ArqKr4+ptKDtgpVlwx30NqkogMDmVB9/KfB CzER6FMbe6/gxyeQrD0Y3MSmSkdPmKI4mIB28qGpYyZvH98j1pp1ljdH/uyuYjYMCYAN Y8yxpyNqBHAocWViMXNBaB6OfFbwF/0G6lo661lkljHoMutLYO9gXJdstZvcKSZPMKhZ Yq8A== X-Gm-Message-State: AOJu0YwdWhiIsNN5TYwF54k57lfwxSDmrcG5DdsDA4uAD2MDisye0h+/ /zDtp9Q7k+2jNsTw9oNqPh+dXfoOjGfq8YFMs0hKk9yP6Sd5K30LvqQoxx8lGOA= X-Gm-Gg: ASbGncvwKEO/125cicLEZiMnhZd1khZxRgprBJ/OPOCyvirpAgKntZp7RkxKfjRYjcF HV7ZLa7Gp/s48RhP2/ZHJtFEgiB5ukfRPr2HhG7wjA60bH6pGKZy3wSPLp0vH77OE4fN+gBgr7D 6RdUredxmEO7QEghSX0bd+tXJ/IeKKuW9It2jsjJ4MFNCXObk1vd4K+n7aJJUIaCcQlTBvRW/9y nSV3gFPSCp/dgBSdorw0tBYUJStcvb/ZvdZITH28mnzPHypVJHh4PjYqQ/CRdr0Nx1AcVUGi6j8 agRKe/8= X-Google-Smtp-Source: AGHT+IFmHslrORl8iCSfMyQPeWS7T03UGbsvKy3s6/N5wWrGhzpF0qVtjOGI5Dkz5XcIfMQH+4A4Wg== X-Received: by 2002:a05:6a20:432a:b0:1e1:dbfd:582b with SMTP id adf61e73a8af0-1eb21498454mr34159462637.15.1737632331808; Thu, 23 Jan 2025 03:38:51 -0800 (PST) Received: from localhost ([122.172.84.139]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-72daba48cd0sm13058058b3a.131.2025.01.23.03.38.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 Jan 2025 03:38:51 -0800 (PST) From: Viresh Kumar To: "Rafael J. Wysocki" , Kevin Hilman , Viresh Kumar Cc: linux-pm@vger.kernel.org, Vincent Guittot , linux-omap@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 15/33] cpufreq: omap: Stop setting cpufreq_driver->attr field Date: Thu, 23 Jan 2025 17:05:51 +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/omap-cpufreq.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/cpufreq/omap-cpufreq.c b/drivers/cpufreq/omap-cpufreq.c index 106220c0fd11..bbb01d93b54b 100644 --- a/drivers/cpufreq/omap-cpufreq.c +++ b/drivers/cpufreq/omap-cpufreq.c @@ -147,7 +147,6 @@ static struct cpufreq_driver omap_driver = { .exit = omap_cpu_exit, .register_em = cpufreq_register_em_with_opp, .name = "omap", - .attr = cpufreq_generic_attr, }; static int omap_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: 13948178 X-Patchwork-Delegate: viresh.linux@gmail.com 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:53 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 13948179 X-Patchwork-Delegate: viresh.linux@gmail.com Received: from mail-pl1-f172.google.com (mail-pl1-f172.google.com [209.85.214.172]) (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 304822144DC for ; Thu, 23 Jan 2025 11:38:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.172 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1737632340; cv=none; b=tTC4g4cIYMH9CD4Zr4mrLDDhS8MKpsYV7yU0DOgL44ePIl3N69H7MnK55tZlOtjpHEaEkN36KiAcjIWW0My1qylfKQrqJy0O62lVF/yxVn4Wck+tX1aisn8lK6vjwlVub7gVaT1HiwG+UuSIF8I5PVnEYXL+WG1KQXSbizJRsLc= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1737632340; c=relaxed/simple; bh=SElg6W0brjdrMTzkS2G3RHlECrQXEcemB+B1qzeCoSw=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=b/MqOSm/eo7idAJEWfRRBihGAhJi7QvuJOouNaQXrpP4K0bRnTCdf021qXJjCN3jbuBxL9GMMSoTNvUTCgGAC0nb+on4EquRd+qVJ/64LH+Qiv2VeRsGf6x0JWq2WojMW/R7vIoTUMnn0ejllnh6X87QSvFlPGi2UPoNQkmb/AE= 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=CzS9AUF+; arc=none smtp.client-ip=209.85.214.172 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="CzS9AUF+" Received: by mail-pl1-f172.google.com with SMTP id d9443c01a7336-21619108a6bso11659695ad.3 for ; Thu, 23 Jan 2025 03:38:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1737632338; x=1738237138; 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=jgUMFQF2jZPTg63RfJyqUIOezgHoYovaa305j3CfZfs=; b=CzS9AUF+sjapUMxblrgkpmBRNNvux8xFwfgVWl9ZD3alwoCqsVPIkjaxZOB4bEcuwP Q/cXjEX7n4bYw8n2entQOguVZv3tDy191mXuZqwvTjBsKXHG47jT7QfsTOwQ3etpSFj9 4Td/mH+QZZ4g3Ygbc8GXsynWlLSL3c/E9ypjRaYVFV2tc9QYIDNKmadVtmICZ42CgGD9 HxUiswu3zebFETyJ2Kbfq9PCKHedipCQgSqwkwz09S1t/f9qPa7qGkglswnKpHlDH8rh LV8zOexd5PmdPWHI2gsoscYg0/nh7JkMFBflOv3Nghsui6Rt2mQciEbmQ20K6inHEhC8 2L4Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1737632338; x=1738237138; 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=jgUMFQF2jZPTg63RfJyqUIOezgHoYovaa305j3CfZfs=; b=SLaPtSzz+jTUiV3cAyZGUyX8ROExtWcX4osD2IZZSLpwl8IQbNzyl1L7ZF5GMqoJfy Aj55NeoWJ0gCWeAOTmYcVn2PxoBWFRgiaqy5bWwohWwB+vTjWcl8Wv053/tvP7258xk7 nnWCRMybDSpVw+iBriI/ezi9UBA0sQ7GEY6Rbv1FwesmhLhBpzcZ3mGx/0tGSh78FfK1 QZz9BfdyzvR+vQBpguxs2uv4+dDLo/11Rg02ic2/e0IQrFBGCTJ8fL5idtFjOEJpLS1H +KhQq7OlrFY/sJLZ1k8ZfS01VMYDHaScIv5kU0GRYf29veG4yxwdU1TqJPu7vLNUbbUj y7cQ== X-Gm-Message-State: AOJu0YxqIaYe4tFFsAyI6tCplTS1+z26ZE5avGrk6I1H0oWoUZnDSt9Z 83cbMwQtCPwPAq0brnppwd1RXO4Hkl+Ke5mA99U0SI97r4ZsM/Zh33PbDyyNPlY= X-Gm-Gg: ASbGncvrOAFRkFOcZrJm81B0Lf/pOarxOrkUyyYESpae2WSaOmcNCG0xgt/T6Jmou4I s0Rqdsjg5iaNLhHLPec4nsyjGhYXQbNowsfxnqk+khQVwLhhV6+cLb7RnRaucZGetQanK9p5cOa z+Wz18aXh5JrCNyBaV3GAMgGtNLV13urL0SXt4lZdL4l6X6iPhSpnLusBpt7WMxE3DvEvlGCMpw AZunnDTd4ikRNAAGaF0t51N2HWaBJlZYBCkiu6ilUQgEVYlylg46vLrPJZhG/HeNDxRmE9ujpyW uDXfYqk= X-Google-Smtp-Source: AGHT+IG8elfcqoVP5TeqJF0YRGoxv3Se634EVNeUTNkO1Px/MlZcL9qlyaSPzaiuo/PEWE6hWA8Y5Q== X-Received: by 2002:a05:6a00:be0:b0:72f:59d8:43ed with SMTP id d2e1a72fcca58-72f59d84743mr12350234b3a.14.1737632338582; Thu, 23 Jan 2025 03:38:58 -0800 (PST) Received: from localhost ([122.172.84.139]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-72dab8148dbsm12918263b3a.44.2025.01.23.03.38.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 Jan 2025 03:38:57 -0800 (PST) From: Viresh Kumar To: "Rafael J. Wysocki" , Michael Ellerman , Nicholas Piggin , Christophe Leroy , Naveen N Rao , Madhavan Srinivasan , Viresh Kumar Cc: linux-pm@vger.kernel.org, Vincent Guittot , linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org Subject: [PATCH 17/33] cpufreq: pasemi: Stop setting cpufreq_driver->attr field Date: Thu, 23 Jan 2025 17:05:53 +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/pasemi-cpufreq.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/cpufreq/pasemi-cpufreq.c b/drivers/cpufreq/pasemi-cpufreq.c index 5fc9cb480516..a3931349360f 100644 --- a/drivers/cpufreq/pasemi-cpufreq.c +++ b/drivers/cpufreq/pasemi-cpufreq.c @@ -245,7 +245,6 @@ static struct cpufreq_driver pas_cpufreq_driver = { .exit = pas_cpufreq_cpu_exit, .verify = cpufreq_generic_frequency_table_verify, .target_index = pas_cpufreq_target, - .attr = cpufreq_generic_attr, }; /* 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: 13948180 X-Patchwork-Delegate: viresh.linux@gmail.com 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:55 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 13948181 X-Patchwork-Delegate: viresh.linux@gmail.com Received: from mail-pj1-f41.google.com (mail-pj1-f41.google.com [209.85.216.41]) (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 4E6E0215069 for ; Thu, 23 Jan 2025 11:39:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.216.41 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1737632348; cv=none; b=tPd7wXYD+2cGW+Ym0uj9unblqKo4UFADAYMc9Rrm1ySXsVwCm3YfA2FYmb0NHxA2JCvRZ76Ovy87pb3sITtypoUeAG4Xml+pFbMIjBDK9zxz36PKfCOkyNn1jIlcbsPjFM/HSh2E4yqdGWD9M9BcbUFvf26vVyrnGn9mGv8vZGo= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1737632348; c=relaxed/simple; bh=xnL8tB/+WK4uVjlaFmvG1uac8pUoDIUDIef1HU7CfBY=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=djAAMz5T2Zu7QUV2ty+J2+jf9v/E8QYoQmn5ogbUmhQ69Q3v44DICTr4nbtoxnvb2j8+VbtC6R7hFupqPjaME/KErT+nfo52Gu1LH+jQ/y74/wwtjdk/ib98UYY4sF1YonYyZ0wyauIYF3BxchSl+ubhNMECe1moPOZ+EWFPVWY= 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=d4gLGQ7z; arc=none smtp.client-ip=209.85.216.41 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="d4gLGQ7z" Received: by mail-pj1-f41.google.com with SMTP id 98e67ed59e1d1-2efb17478adso1485475a91.1 for ; Thu, 23 Jan 2025 03:39:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1737632345; x=1738237145; 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=NGgL2Pcwn8U3/AjOXI4MB8UyAOlQbSMfePC58mcHPH8=; b=d4gLGQ7zRz0LJJmK1Q8R1nnYu4ReOJjCeL92TySARSQkveS/IoQe9srq6AbB4yaAUO Jc4Co/EgERZFk/2quQTCAV2Z0pAhrdyPmo8DFiRW2OPWumyvIPA+L9X8kJWNlwb4ZQYi LRJ4qgp/x1i8lx0aPJT/Ov/ImjSo8m0emDScbbgiXROO1UhA3o0Epq4thYN8LvKvNMQZ u7euJNdZZ8PU+pMEC7YCpFnGJQMKxQhPY80v9T7VBPTenaDIJwE0kX641Empi9W6M/XI 2jfI32RArqWvOTLY6pl4RFeF0OGKJHaef7vqJeu0cDeZztLn2Jvm+q4gIFqaTGH9jO1H Aebw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1737632345; x=1738237145; 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=NGgL2Pcwn8U3/AjOXI4MB8UyAOlQbSMfePC58mcHPH8=; b=GwVEp5xZM3Qpl86tT5k7AFvQMrO4UTf6MhXK8eeF80E7rb1gkBOWrRmNL+FbItO6Bq 6zn6dCS6cq65XLGXvbccXp7iMXmOipbcGejW43d9wlcinP8RL9Cp9omKTNRiyf4mUnqe EWrF3CmS+6qeBRnb2Jr68xC7zdmR7Gd3MXdljyhMZD+3KuYx4l3xJCQFlTVmuSetYenl f9Icam5mRlscqO7BkwkrwtAUPQ/gwJwtKx+AF0vPhq6bNF56YnxgTBnLeWctOY/LYC9d mrpvMq2l2IRvhfnDKtCbkpQl0JHa5l8vMcpioNiwJFLFrWrDiNDoAq89+8BxbhWge1LQ OzJg== X-Gm-Message-State: AOJu0YzdKoDCSuSTgEc09lEkTz13HAMgAKHKXlGCL+E3+DNMaQge6sFy K+nZQWEWOjUphVALAFBW1bEbYEStp91+zfiywwCbrFt7l17KwaCQF+JTXf2i9nw= X-Gm-Gg: ASbGnctnkv98KITC0MwlMS/2HdWi6HB5RVGwLWJ/WdUREXn3eGOckHTyEwMwR2AgwI+ i6qzXrBsR/5tT/1TCBgrXuKbXiebgLGDVDgdk10nq2+XZhSjQHymCPkA1X0uTuejVmx2gvJaj7P uSEKdqaicrbZDFiy/qMg5JueQMhfVAsvgHx5uzq1UUo3oo6G3v+XEdQ5ujJ+gEivixHZXkmsIDg NDmE6QSqFundfXhs9FTHlMD+fc5fsi5JglcxAjgI3ackDMjcR7gO76pama812ifYj2J+0uGOOar 1m86e5U= X-Google-Smtp-Source: AGHT+IFJ5vZUH+XuQOogqVlXtlKr65mibtBaOhKwEW4aPJ2FTjDDoIIe3COQuuBME2eIdCbPXslwsA== X-Received: by 2002:a05:6a00:1705:b0:72a:aa0f:c86e with SMTP id d2e1a72fcca58-72daf9beb8dmr34127042b3a.4.1737632345704; Thu, 23 Jan 2025 03:39:05 -0800 (PST) Received: from localhost ([122.172.84.139]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-72dab7f0693sm13023397b3a.10.2025.01.23.03.39.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 Jan 2025 03:39:05 -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 19/33] cpufreq: powernow: Stop setting cpufreq_driver->attr field Date: Thu, 23 Jan 2025 17:05:55 +0530 Message-Id: <99b86ee0b0fccb7cdd77b803140f1227d2d45b52.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/powernow-k6.c | 1 - drivers/cpufreq/powernow-k7.c | 1 - drivers/cpufreq/powernow-k8.c | 1 - 3 files changed, 3 deletions(-) diff --git a/drivers/cpufreq/powernow-k6.c b/drivers/cpufreq/powernow-k6.c index f0a4a6c31204..99d2244e03b0 100644 --- a/drivers/cpufreq/powernow-k6.c +++ b/drivers/cpufreq/powernow-k6.c @@ -253,7 +253,6 @@ static struct cpufreq_driver powernow_k6_driver = { .exit = powernow_k6_cpu_exit, .get = powernow_k6_get, .name = "powernow-k6", - .attr = cpufreq_generic_attr, }; static const struct x86_cpu_id powernow_k6_ids[] = { diff --git a/drivers/cpufreq/powernow-k7.c b/drivers/cpufreq/powernow-k7.c index 4271446c8725..fb2197dc170f 100644 --- a/drivers/cpufreq/powernow-k7.c +++ b/drivers/cpufreq/powernow-k7.c @@ -667,7 +667,6 @@ static struct cpufreq_driver powernow_driver = { .init = powernow_cpu_init, .exit = powernow_cpu_exit, .name = "powernow-k7", - .attr = cpufreq_generic_attr, }; static int __init powernow_init(void) diff --git a/drivers/cpufreq/powernow-k8.c b/drivers/cpufreq/powernow-k8.c index a01170f7d01c..4e3ba6e68c32 100644 --- a/drivers/cpufreq/powernow-k8.c +++ b/drivers/cpufreq/powernow-k8.c @@ -1143,7 +1143,6 @@ static struct cpufreq_driver cpufreq_amd64_driver = { .exit = powernowk8_cpu_exit, .get = powernowk8_get, .name = "powernow-k8", - .attr = cpufreq_generic_attr, }; static void __request_acpi_cpufreq(void) 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: 13948182 X-Patchwork-Delegate: viresh.linux@gmail.com 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:57 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 13948183 X-Patchwork-Delegate: viresh.linux@gmail.com 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 170E2215F4F for ; Thu, 23 Jan 2025 11:39:12 +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=1737632354; cv=none; b=doRz6ClyU7LtzD/ik0xDOqpgcfSzEhGo4jMVcypQiTjFu0cyOr0Fsk7c5l62BesL3w3cKgPrGpi+P45Ka7tjzgt8HF2GDtmvPaYMRtWBXfBCzHF24QOQy7mizVZTRXUuQ6wDluIcNRQJzswS+h/kMhX5Wy+ku1Pt/sq6YzL93LE= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1737632354; c=relaxed/simple; bh=0vuFyrpowJWXJ+EgmQo075OCUAokbqO688arZlJgNwE=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=ZuFX72xgwYEjNOsw5PO57lBBFmpRYkc917QPXyquuAkh4zUWUjGWalt4ibYTbsSOcsWl60cPfB2reFTIKgQPXoJMHuXwE6WQTmUqxIQQ7zHvqautxP7nrcBS5DxFvbMj/R1CGXjX8pBM1BIXeDmeh0XCAOrjNfoL17Lv9F3nujA= 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=HlMEm15d; 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="HlMEm15d" Received: by mail-pl1-f176.google.com with SMTP id d9443c01a7336-21628b3fe7dso11907425ad.3 for ; Thu, 23 Jan 2025 03:39:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1737632352; x=1738237152; 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=pfFWpe84qglq/TtVYEMV6ZHL0gX6mGnPHNUCBfXIIJs=; b=HlMEm15dy4WZlJDIFyZD3ccFVVQ8zml48ro3I4mFTiykgduqdehXhBkf50wkI6lDyR tUXp1EpGnwNGRs/1sD98wnosfM/CT4CgLF7StQE7/MF+U0B4B97xyxfTGqj04lSFfmSh oA9mt3ONYLMMGYWwtEVyIlLviAuFB3gOAbVu1SwBRwtIbG7191lRpubwP1G6Iomhp07S UOi06IDJNlN/Q0cOuQOA1cJkwnc9QOwAINH1Th/l3f75AGgcOzCacgM5TrI+pVaFWmPJ 7oAWddiKxJOrVEKPiyA1UyvjGzyJLuaEv0AU5WjQmD+zG6iDNBvnLi4wGcuKOGH89oc0 ZVPg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1737632352; x=1738237152; 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=pfFWpe84qglq/TtVYEMV6ZHL0gX6mGnPHNUCBfXIIJs=; b=IZKrSw7Tc61N8bFZCwS4QeflRCKw4Ilv8iKH1EXhR6Y6Ks+Ol/eavnar+we5XgTty0 mhRNMP2uarFlyfD6fcNHh4SqrEPRyDmSBtZbSQgEGpM6h+ts3CZwWFPOmQbfINRlmH32 yoyCFkUGlRj882GhzAJD1HD4T1Zvccy1y8ox9vkrdJR0T6Mll84b27R0sYFrdQNdv8ZV ksgp7wx8VWpaMg2Thp5cy4+WuRNTvT/t3/v/tjg1X6uULfqbysAEtvAl2MwNCfKI2cZB 8QqDq9cUvQkT9StrjLDOUafnKubhw0y7cKlrD2PerfEcL5W0VfKhg2tPLW0PYfSVmFOc 3kCA== X-Gm-Message-State: AOJu0YzNRAEySKHewVlGw3+VfvVwujMq5au0N9mR4q+DNPZc62+bMY7L 0/xaA/gJDKEY1RnGO8Ae6OxNgqNGFdPNNx639KDtfSJX7ynxUCm/uKETCtI7KXQ= X-Gm-Gg: ASbGncvctE4wuB+jJhX6qErCej4VQK991SZHf69phs+lSSF/zjv4/o7OAXVT20TAuj7 CRBjy4onHkc2VhyaXFPP0i4OA2GQGLCdxAi4eHNbsYoTuV5W1cYS5VmFeUbT8xFEK3RUIG5mrX9 +WD01VcXDYsRi7A16myToU7+n/7X/dyj+8jqh78/gH6Qq6NIJl1g+q5nxGupBxCEvEJt0CVO8GU Hh2UfyFb6v5NzvLdVrAqiWbN7fnm6KITMWwmOPOWEreomEpv5Aw8tmPmZPqos2uyxPqMICu0T3m 1n55Ga0= X-Google-Smtp-Source: AGHT+IHlclUl4YrIQK3CJ0/Pzuudje5vfVTFEO6w99Udj/Vlk9RQblNRiPVYs/2jxiDc+XWZQoS5zQ== X-Received: by 2002:a05:6a00:2e9e:b0:725:e1de:c0bf with SMTP id d2e1a72fcca58-72daf9483fdmr33058325b3a.9.1737632352436; Thu, 23 Jan 2025 03:39:12 -0800 (PST) Received: from localhost ([122.172.84.139]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-72dab7f1ae0sm12995670b3a.24.2025.01.23.03.39.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 Jan 2025 03:39:11 -0800 (PST) From: Viresh Kumar To: "Rafael J. Wysocki" , Viresh Kumar Cc: linux-pm@vger.kernel.org, Vincent Guittot , linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 21/33] cpufreq: qcom: Stop setting cpufreq_driver->attr field Date: Thu, 23 Jan 2025 17:05:57 +0530 Message-Id: <2e582722386a1ea89ecd8b174e758e054da86555.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/qcom-cpufreq-hw.c | 7 ------- 1 file changed, 7 deletions(-) diff --git a/drivers/cpufreq/qcom-cpufreq-hw.c b/drivers/cpufreq/qcom-cpufreq-hw.c index b2e7e89feaac..7d83d7d2ccc8 100644 --- a/drivers/cpufreq/qcom-cpufreq-hw.c +++ b/drivers/cpufreq/qcom-cpufreq-hw.c @@ -595,12 +595,6 @@ static void qcom_cpufreq_ready(struct cpufreq_policy *policy) enable_irq(data->throttle_irq); } -static struct freq_attr *qcom_cpufreq_hw_attr[] = { - &cpufreq_freq_attr_scaling_available_freqs, - &cpufreq_freq_attr_scaling_boost_freqs, - NULL -}; - static struct cpufreq_driver cpufreq_qcom_hw_driver = { .flags = CPUFREQ_NEED_INITIAL_FREQ_CHECK | CPUFREQ_HAVE_GOVERNOR_PER_POLICY | @@ -615,7 +609,6 @@ static struct cpufreq_driver cpufreq_qcom_hw_driver = { .register_em = cpufreq_register_em_with_opp, .fast_switch = qcom_cpufreq_hw_fast_switch, .name = "qcom-cpufreq-hw", - .attr = qcom_cpufreq_hw_attr, .ready = qcom_cpufreq_ready, }; 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: 13948184 X-Patchwork-Delegate: viresh.linux@gmail.com 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:35:59 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 13948185 X-Patchwork-Delegate: viresh.linux@gmail.com 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 BADC12165EA for ; Thu, 23 Jan 2025 11:39:19 +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=1737632361; cv=none; b=SUD3G8CjV1EEed2Tdp9xsg9oTkLAQnmxa0dFL3bmAPKB15/8t/Le3/mo34hFWFbLakqzgxjdI+yofjmaZvGSb40KbQ46YCPlvc2XCwTT8+ak8OjNmuMDBrBqFB8i2s1r64FSz1I93rKMrKE/1oF3GpdWHtxtf3GtJZKbMgXPI+4= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1737632361; c=relaxed/simple; bh=UH1tpNt6VbcCT0ZrE3SxdKh5LKux9R4FiQ78W9CUXSw=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=D61rx34jCB5hSgEdHn23O68Y9+6pc07pwpMikVUOObqhyyAj20eX8eRsY9rH7oufsic72B1zR+lAg0q24zaONfUfG7VEom79ck27NwsdNIYJ028qea2SD1fYI53hQErqz5I5SK2VzkYYy+4GJ045ZuZmeynvtyhE5fkV6Y3Wmfc= 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=yHe2EOq4; 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="yHe2EOq4" Received: by mail-pl1-f181.google.com with SMTP id d9443c01a7336-2165cb60719so12428525ad.0 for ; Thu, 23 Jan 2025 03:39:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1737632359; x=1738237159; 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=Qw5eLVV+9z3dLXaoxWtpMTsTyt1/ZfCdP5QemkFoNNA=; b=yHe2EOq41ZfmGr0psiX70WMim9yL0HQ9zITiUFhbMESWQdckAuYFlHiuhC2rVIWk0o oVHHcXhg6wuJNEJJGpxr3C41MjAHowyZ57JZVcUS+jJELGmCAdzfvEYp/elMNBC06cNF QvB9JZZ/Ygbk9GxsoG1Lq7qqexWn3QbHiSuoW9pJx+q0yc8+wAJkvdJduPi55Xx3dN9b MNLm+XqJDUkUpvG9a40klRYVAzN9FpnpLY0wSRNZAiqJkmkoazTUFvJBHVeNohRJZqXk gmGwxlEZOTQC8/ddNuqVwU++Ep8BsTlFiBMfTI8p2pVg/dvZf1y2sD8270BKYXxft27K YA5w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1737632359; x=1738237159; 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=Qw5eLVV+9z3dLXaoxWtpMTsTyt1/ZfCdP5QemkFoNNA=; b=byIHb+BCg5Z5Xd+YI7i9FE4ilX5nGuKth/kXh83wk/Fb+Cekfm/PUiDDXJ571NpEHu bMqUdA6Z34FsDKeUTp+yoU5LS5m9GDf8XdL6UclSAfUeNtTv5FnXc2zU6KeGr6YUkghd mS6jdo7sXNYhYrRmw3PlvJZjrD1f0ricaZSaTX3hCchGz29JLruiT3HEmL7W/87bJW0f YSxB00GOtbb6C13rvpvybCZayNciCbyFEjgrc4+klWyLr/MSh/gwxEzbL1gBFqc1VNsB Yz7vcGSVQM4IBNwYIv4ZFkYQT28IhKQSxEDfpLHFcy+87DU7WlMNrvYi/EDL52GyfpSw XGEQ== X-Gm-Message-State: AOJu0Yy/QAGm16FkesX7IChrRu2WRCS8+6GDmdwyyYH+xL4KeGSD+k36 zVX9WFFbMuF93J6lKQ6dhebC5H4x5IQ8HTDJ1YATGldXp6yjF/NBbeMryH1F6fg= X-Gm-Gg: ASbGncsfnQsP6eRUWuught1Q7GDE4mRGlJexmm9YXJVLIO3jOf7VyswDVBQHT6Sj+Le yPBM6yYKplqkvTC0eSXr/fAUz4DRZOEFVcxZuBziIGbQDLzZ+ShNslklVFSCh2kxo4ObJJUwH1R Nk2joI3Gdd/4tnoSidsqHVp/NMizof5z5Y5BO4tl5XoiItFdHmvxaXsTty6EtFHvNyB5vX9iVkA xi5gXUAqtEgItNskKDVxcWPXN8H9GPD7efpnrouP8ybnx9xAlD8RNIipLacgPkzlcNXXwsxzYR5 Sok4j3U= X-Google-Smtp-Source: AGHT+IG35bHKpPtBqyWEN4vjNem7enzw9Cfzq+hJCua4U03cU32W+2jXl1Mmp4lHTbPlx0N5HnW7XQ== X-Received: by 2002:a17:902:d2c9:b0:21a:8ce5:10e7 with SMTP id d9443c01a7336-21c35530380mr379841305ad.23.1737632359102; Thu, 23 Jan 2025 03:39:19 -0800 (PST) Received: from localhost ([122.172.84.139]) by smtp.gmail.com with ESMTPSA id 41be03b00d2f7-a9bcaa3a4dbsm12429106a12.12.2025.01.23.03.39.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 Jan 2025 03:39:18 -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 23/33] cpufreq: sc520_freq: Stop setting cpufreq_driver->attr field Date: Thu, 23 Jan 2025 17:05:59 +0530 Message-Id: <2ead2cb17391d12fed69785f0eea4c56210a524d.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/sc520_freq.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/cpufreq/sc520_freq.c b/drivers/cpufreq/sc520_freq.c index 330c8d6cf93c..103d2519dff7 100644 --- a/drivers/cpufreq/sc520_freq.c +++ b/drivers/cpufreq/sc520_freq.c @@ -92,7 +92,6 @@ static struct cpufreq_driver sc520_freq_driver = { .target_index = sc520_freq_target, .init = sc520_freq_cpu_init, .name = "sc520_freq", - .attr = cpufreq_generic_attr, }; static const struct x86_cpu_id sc520_ids[] = { 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: 13948186 X-Patchwork-Delegate: viresh.linux@gmail.com 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 Acked-by: Sudeep Holla --- 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:01 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 13948195 X-Patchwork-Delegate: viresh.linux@gmail.com Received: from mail-pj1-f45.google.com (mail-pj1-f45.google.com [209.85.216.45]) (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 B9AB821660E for ; Thu, 23 Jan 2025 11:39:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.216.45 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1737632368; cv=none; b=IOoaF5y25+5wktclwr6V5jTWshTUxJIKAgVmBhcdbTZODEMIvmGsMayWsUsSdow6zVekOekYVpRzTsXic21yemzRLiSoObn6+9h2y57iR8AwgozYGwhhnqx2SZorIM/oDXDoefguRA+EseyveX23CbLsh3vxHVV5AUeX/vtBpRE= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1737632368; c=relaxed/simple; bh=ISnDu8HFa/lMeUi1aSqC0GPxgTXvokFOJYnohLySKhM=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=ZIsIo17ez9xEYas2lVAWufXZQppTnlIkkknscgDLOtmWHH86Oo513rYcrSdcKo0Javy5aUWNGlkUVyhvnuwTzNF50FkqKL4OT6NnpSGdJ+dksGvrO/mvvjpShU9cJEPNqHV/greqnDguLbHXX/aNy9GcXcu33j8xPMWb9IBVwv4= 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=FpdX5lel; arc=none smtp.client-ip=209.85.216.45 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="FpdX5lel" Received: by mail-pj1-f45.google.com with SMTP id 98e67ed59e1d1-2efe25558ddso1143095a91.2 for ; Thu, 23 Jan 2025 03:39:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1737632366; x=1738237166; 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=bidGXEhWbEsWi+5Sth126LejibvpIMLA/P72ifY2Y/8=; b=FpdX5lelOIK58W32hV07DR31kCXPX10mFmUBXsJNAwfuNczwYakcwz8HSyKh250Atg lZixakHB/OPPq+YETzH4NbGs+WhgkpxVnRPpsunvWX598FikNYVX3vjs+T8x9nMPc6uW It/UrvBtmUp35CldDl4eMZ0FNuynFiX4vIjaR58unop7kVf41n30MYtd6eyuth+vMkLW 1hFGCv+Go5/uKugpf7Q6AuVoZWj+aYTuO2dnrESFC3w/1IR3muynkJ57Lskhq/e5dJNz XqICDzRpjMNQaHdu0C4ezzEtN/9BHPGZzATL14+HHikgcxjVeieLyiCwLoflttU6pGft 14TQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1737632366; x=1738237166; 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=bidGXEhWbEsWi+5Sth126LejibvpIMLA/P72ifY2Y/8=; b=JgkCUcn+iKRwFjJFyXcuPb0agi9UvZ7J9qabU3YjQ0Rq5/Uw62padnB9//2QU6Ez64 eyqcd2iEtII6aWnsn66eEx46CKEaSFqgCObIc20kj9amsym639Sp8Nr7kN4P14Fwgomz X20lmrXyDlHHQL+zeA82E4Vd0n7yGUqoy+74RyzJ1Y6oxjbqNxsYse8fIvsHprjSVrxG QNpIvd70J3uIAsyTnHuiYwiF6F+6LNi3or7q3iZ1X+tQ/0z1e8xvi//zjEc6zxSBXDUi tIkR4uBnMFqooxht01gjv0/pIB93hlYLqcgqlbR/2+PTlJKc3pPZJ7frxjf37uiIzw3N Tzdw== X-Gm-Message-State: AOJu0YyS4fcOJzD/NfXwW74fffCJ9Qrg5EuLD5JpPLtOs2KPXoEUEwoZ sFsT3tMf687s/U1hWQrKK54n/yANayCPLIn9O6NtI5Fo+NHRzapfGYhPidsPxZWQSwn6aMW4vaY u X-Gm-Gg: ASbGncv8IdV86AuozmqKdVQqQyvFVAdckqQ54VazYFS04v5E3uw8qQPBoaehozOhW2F 96636BGtN2Hp2IR7FXvj2eA0Ps2HRPidQDa2wjn1nxcpkJWyVqkV3t91zR/sTYXn01ld++1ybkH LDZauhxpxvRFQh/7v0QmjWcRP+5uj70SNncDxGMVjNFOpFvR7TBzL72egSqJlPnS9eKuV5Z0ENm dFFBylhccZbUX9WEQmc56MnKHeri0Xa6p4MCiVPrQRA3XKH+uls/n1CtZvTo/CO98nAQYA+r78/ FUmz4uA= X-Google-Smtp-Source: AGHT+IHMoaj306mgy718YKGGZ2ZKiv1T27I/McQDNCDh5aizBvwSBcMBEOMZ/suJHkPkfqgWyPwUEA== X-Received: by 2002:a17:90b:37ce:b0:2f2:ab09:c256 with SMTP id 98e67ed59e1d1-2f782d6f0b9mr39599393a91.33.1737632365880; Thu, 23 Jan 2025 03:39:25 -0800 (PST) Received: from localhost ([122.172.84.139]) by smtp.gmail.com with ESMTPSA id 41be03b00d2f7-a9bdd309d91sm12546450a12.48.2025.01.23.03.39.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 Jan 2025 03:39:25 -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 25/33] cpufreq: scpi: Stop setting cpufreq_driver->attr field Date: Thu, 23 Jan 2025 17:06:01 +0530 Message-Id: <2b89078adc1472d5ab9377ad7675cf4c07a8f7cc.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 Acked-by: Sudeep Holla --- drivers/cpufreq/scpi-cpufreq.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/cpufreq/scpi-cpufreq.c b/drivers/cpufreq/scpi-cpufreq.c index cd89c1b9832c..54574978986c 100644 --- a/drivers/cpufreq/scpi-cpufreq.c +++ b/drivers/cpufreq/scpi-cpufreq.c @@ -183,7 +183,6 @@ static struct cpufreq_driver scpi_cpufreq_driver = { CPUFREQ_NEED_INITIAL_FREQ_CHECK | CPUFREQ_IS_COOLING_DEV, .verify = cpufreq_generic_frequency_table_verify, - .attr = cpufreq_generic_attr, .get = scpi_cpufreq_get_rate, .init = scpi_cpufreq_init, .exit = scpi_cpufreq_exit, 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: 13948196 X-Patchwork-Delegate: viresh.linux@gmail.com 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: 13948198 X-Patchwork-Delegate: viresh.linux@gmail.com 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:04 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 13948197 X-Patchwork-Delegate: viresh.linux@gmail.com Received: from mail-pl1-f169.google.com (mail-pl1-f169.google.com [209.85.214.169]) (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 EAC4C21765E for ; Thu, 23 Jan 2025 11:39:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.169 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1737632379; cv=none; b=D9gKvcxVjnUSFC4Kzwk5o7YAagfqx0uv7NnVYLnOD/Pgg6Y/UcTAlMZmNRRl5IOBhrdONT7eJta9zRMWTS3cEBxJDxZ1AFjl1koUF+GPV80eVsgML1MBSRQWHt1pVO5iuWd5aIuEQLLb50alErRZ/tQmI0x1YmKFT9UZ8o+hYT0= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1737632379; c=relaxed/simple; bh=LHdZZBs8LqTdaSpOCmU9TByv0nLy7UgO7+chu9ptj08=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=ISThDfZdtmqFqtI5gWilwEpcJYzilSkA0znScnV9IW0dntKziQCSS/VrucYYrEVtaIW+jIVWBgKJuOm3HyfklQQqmoR592pM3gi+x/Qb1DXKprC6cELzF07CuPpKFGDR6KtFI1jMmOXTMP1KckVB0hXADnrIKk/n7q5+25JdrFA= 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=Vmrx21SY; arc=none smtp.client-ip=209.85.214.169 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="Vmrx21SY" Received: by mail-pl1-f169.google.com with SMTP id d9443c01a7336-2161eb95317so12529195ad.1 for ; Thu, 23 Jan 2025 03:39:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1737632376; x=1738237176; 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=EBicRp1Zl8mKWJDqg/9fln4v72TIU9xhaEp8a6ynJK8=; b=Vmrx21SYwhSrZFdoFBUPr8kAzyD1BuqBIyM2VauFmgabm3klMTO29RsiYEpMXUutRn ++X90BirTFNUiIqnRrr/J/FwLfxvVE1qUABMGPRuyDzxdaIss0V/2oCDt4oBvPRKN5hi P1mUHHZinD7eA30ygqWFwmOc/ChO2/rZAf3QMlw67Gy9JvngSoxCC7W7y2JNskPxfOrF L1ejlar+06EHbX2fkmHen2dtGLk11LSbh99WUlG1Uizfl+ScdExV6ZYhkW1xm+Qax2FM nPdxv5aoPlbPNJtLBvIwbqxXl1+8PRU1LQqqyEqobji/du+tG+8uKuQ8mV6tNGZ+AeSL We5w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1737632376; x=1738237176; 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=EBicRp1Zl8mKWJDqg/9fln4v72TIU9xhaEp8a6ynJK8=; b=sMVc3b2DeAkr+whPqHav/y2TQ+pJXDeunNMihpFbogekcvOpU770E0F2/KNGyBM2dy O5kLSsBM4e1t5PSjFybuEs+uxFFH1pseaeHqYCtGMXho4PgWZcIybLAMNMBHKjq/2lY4 uXj0zTb2fkH+P8Y+3L6LiByXepKLRDf1/pGsf4yETzgKIxG0etb0KcnSSGChJq+elNf7 9UFq/8XvUQ4xWwX7G6HjtjfFlB6m5g3y4D6y/Za2uq6GGaCRsd/RVGVN1PXkJ26ZsUcW VwzFbrxsmCShWwD1YSBZdYw2ijqJAt0i1UGnsxmCPWGgvMYwgUK0RTME4LSaa0dWGJGW HBYA== X-Gm-Message-State: AOJu0YyaiLW+EKNCoV4KwbdHlrrQGLmNgrDYsseG8rii0/+bYCqnJeKW 6HuUhjX8TcL/QdBPJid47zybUJdXg7//4+galK201XxbkYlWKoe++us/QE/6N70= X-Gm-Gg: ASbGncsDsePwJ/NqDodJdSwkouuqXVAe453bvg7WeXyTIgrTm2FLNva0laCckR1g5Xn F1N1fZsGy4fi+mLpWfYrZdtT5J/fWF0hQ5hDyAjDQC9abWlb6BBbqCbjDjLrMEI4vcHQMMBvUQC cYBgyZu593ko+r7u8bZ6v9+SkO2VQl3BySViCuLm0mYYPsEAnhQjYPZh10vepSNYM7TQ0Q5LyVu ifJiVb+av68pNCfXzSfF8mhzeEfcIVMumCLe76FGfkjXsu3WVUUaRpdhLbrRbAj7JWc62F5ZKxr kAincq8= X-Google-Smtp-Source: AGHT+IEVeVKW2icUS5K8c44XwKvlMP+JRAoHXW+RwI1RCgxUCMtM492yQON+xonJq1vZPLhZ81eMBw== X-Received: by 2002:a17:902:ec81:b0:216:5448:22a4 with SMTP id d9443c01a7336-21c351bcc64mr417493375ad.10.1737632376284; Thu, 23 Jan 2025 03:39:36 -0800 (PST) Received: from localhost ([122.172.84.139]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-21c2cea0531sm112676825ad.24.2025.01.23.03.39.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 Jan 2025 03:39:35 -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 28/33] cpufreq: speedstep: Stop setting cpufreq_driver->attr field Date: Thu, 23 Jan 2025 17:06:04 +0530 Message-Id: <2df2aa08d493cb0236361f21589b186c3585c37a.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/speedstep-centrino.c | 1 - drivers/cpufreq/speedstep-ich.c | 1 - drivers/cpufreq/speedstep-smi.c | 1 - 3 files changed, 3 deletions(-) diff --git a/drivers/cpufreq/speedstep-centrino.c b/drivers/cpufreq/speedstep-centrino.c index 3fafedb983b5..3e6e85a92212 100644 --- a/drivers/cpufreq/speedstep-centrino.c +++ b/drivers/cpufreq/speedstep-centrino.c @@ -507,7 +507,6 @@ static struct cpufreq_driver centrino_driver = { .verify = cpufreq_generic_frequency_table_verify, .target_index = centrino_target, .get = get_cur_freq, - .attr = cpufreq_generic_attr, }; /* diff --git a/drivers/cpufreq/speedstep-ich.c b/drivers/cpufreq/speedstep-ich.c index f2076d72bf39..262cfbde9ca7 100644 --- a/drivers/cpufreq/speedstep-ich.c +++ b/drivers/cpufreq/speedstep-ich.c @@ -315,7 +315,6 @@ static struct cpufreq_driver speedstep_driver = { .target_index = speedstep_target, .init = speedstep_cpu_init, .get = speedstep_get, - .attr = cpufreq_generic_attr, }; static const struct x86_cpu_id ss_smi_ids[] = { diff --git a/drivers/cpufreq/speedstep-smi.c b/drivers/cpufreq/speedstep-smi.c index 0ce9d4b6dfcc..39265884c3f1 100644 --- a/drivers/cpufreq/speedstep-smi.c +++ b/drivers/cpufreq/speedstep-smi.c @@ -295,7 +295,6 @@ static struct cpufreq_driver speedstep_driver = { .init = speedstep_cpu_init, .get = speedstep_get, .resume = speedstep_resume, - .attr = cpufreq_generic_attr, }; static const struct x86_cpu_id ss_smi_ids[] = { From patchwork Thu Jan 23 11:36:05 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 13948199 X-Patchwork-Delegate: viresh.linux@gmail.com 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 763BB21767D for ; Thu, 23 Jan 2025 11:39:40 +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=1737632382; cv=none; b=Xr4ZGg7g+h+0Q2QP/YV+ZbjsspY5jIWzMOvR3UaTDzkmCgW1M943YwjBz85rF1Sgj5adrsSJQcVUZ0lFUvNmXEWHiaRtUJdQFHFebP34BuLqFjfRlllgTOUx/enLCO/Iz/Zh2XW0C9fqX7FMrXdmdlcdmXnxFD0ecWuHDg8Xyfk= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1737632382; c=relaxed/simple; bh=/RmPuuk1QBdOp+fFd+3u2pJjkPwx9R+qmj0CkPks3v0=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=SBzaHQG/AcRg8J7jasKKEU/T9zffOtafXDHrgWS6RznvquiLNGNJKSKkv4ywNSnM85yW39AMYZRjVnfqxc3CingG0yVi3oTHuUiUqzSK23qo/o82foqjV/7aeST5Y6iCwq7wCJYvJ3Ed2ChskdBjPh/O9Us45btvd9ABfcky2Qs= 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=qMWkRTXN; 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="qMWkRTXN" Received: by mail-pl1-f178.google.com with SMTP id d9443c01a7336-216401de828so12362115ad.3 for ; Thu, 23 Jan 2025 03:39:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1737632380; x=1738237180; 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=4UBx5rEFZg5PgS8nxgdRfkrF65rnIH7pugxuBKI58m0=; b=qMWkRTXN3VHUyoPzNC0oOZmBpkit1qy/eQ1amcM29oM5zq0/oRpq2fyBpyJ+64U8Sb ftVDcM/J/995U4flbvxGKMMaSzbvuMoBG9MtFLQwx5rg2WzD9isGqG+KzT9So1B/Hxio DT338KHL/CfTwPpD/Rz7bC8oJZ4l5TXuRi3gZ0b45ktr8wCxF2qw43eZ0I2jpiiRubRo H4symqPgsk7zzaTNRLhV0763VzdDz1jJDgse8d/1/Y4YWrrSOYOCvTNTJTcivAAmfG+4 dHc0Tr989gVTNr5WuZjlMB6Wy76zjztovqPYYkHizAmwe24TwAfcu9lz/7VTRlkTYHF0 QnLg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1737632380; x=1738237180; 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=4UBx5rEFZg5PgS8nxgdRfkrF65rnIH7pugxuBKI58m0=; b=bwLs90mUF2BzoqAuJz4yDgkBmVT0kj2tOG9fUOOurNX+yWcNU4mdSgB3bdhEjXj0HK ByaOfJSP9tD0cwvfwOCTEFIj1/T26ub8QkHkCtkzgZtLZ29CZITiQGAEX9V/7+jVPR5x /2bgh6f5+I4W0UMbHtNlI0wRzbs6w4UkjLw5Gf71CSybRy5BAATk+bJYYaqhM2YbHIet KkdEnuegNmE8HLcdoGgyu6F1yNS3lNoObClGR4Zh/CwUtkH+3EN3ruprsUWhhbmtCjAs +MRmo09Zxa4Sm3r0gyLykIkHl94/KchOa6UFUwaUds4zBKOw37dkiscBsNefd6lXvHIu 6tRQ== X-Gm-Message-State: AOJu0YyyaOg4q2sXydn439H8zhRRQWEeu33uZA7rGVR/SZiP9SQIKOrh 00/aXw3EYRR4s9QhPbcYDLdo06EgnbKP49NQYmVM5EiolyYt2lMvRs/F9Vy1iBw= X-Gm-Gg: ASbGnct2eNamKCHs2O11yi1yDWL+N6RNSQRlCfZeGaaLrKoCaUR3Ory9480IdUKpu5q 3e0nevgScQQkZ40oyKhd3xkNzVJ5hTmj4fb0bYEre5wMX1TMqbzYc9LY2M/aABIuW0MB0D/jkcM PQsSwU9m6FTxrcsIF0wxkaoNukYFb/tIFCeLUaiNPjZvRmtf+UaZ/1Cj5xtU+GJvm6rm+MhuDcZ p244pvbfot2o5DXx5l4PJi+HBHEvfFAcEYJB8vpeVKxJt3CVRcpCv6gHGMdagCV3mxLDpGrIfkn D6KXyJNynI7VLLJqMw== X-Google-Smtp-Source: AGHT+IGvwGQNvEk20SR8FXwOYBdk/eKLULIdQVMu1dIgz8TqDRTBdFlyeE3AUsqvQwO3DrZBqBulzw== X-Received: by 2002:a17:903:41c3:b0:216:386e:dca with SMTP id d9443c01a7336-21c3554c994mr378111625ad.30.1737632379733; Thu, 23 Jan 2025 03:39:39 -0800 (PST) Received: from localhost ([122.172.84.139]) by smtp.gmail.com with ESMTPSA id 41be03b00d2f7-a9bce3a6157sm12352214a12.39.2025.01.23.03.39.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 Jan 2025 03:39:39 -0800 (PST) From: Viresh Kumar To: "Rafael J. Wysocki" , Viresh Kumar , Thierry Reding , Jonathan Hunter Cc: linux-pm@vger.kernel.org, Vincent Guittot , linux-tegra@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 29/33] cpufreq: tegra: Stop setting cpufreq_driver->attr field Date: Thu, 23 Jan 2025 17:06:05 +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/tegra186-cpufreq.c | 1 - drivers/cpufreq/tegra194-cpufreq.c | 1 - 2 files changed, 2 deletions(-) diff --git a/drivers/cpufreq/tegra186-cpufreq.c b/drivers/cpufreq/tegra186-cpufreq.c index c7761eb99f3c..b54a77be54e6 100644 --- a/drivers/cpufreq/tegra186-cpufreq.c +++ b/drivers/cpufreq/tegra186-cpufreq.c @@ -123,7 +123,6 @@ static struct cpufreq_driver tegra186_cpufreq_driver = { .verify = cpufreq_generic_frequency_table_verify, .target_index = tegra186_cpufreq_set_target, .init = tegra186_cpufreq_init, - .attr = cpufreq_generic_attr, }; static struct cpufreq_frequency_table *init_vhint_table( diff --git a/drivers/cpufreq/tegra194-cpufreq.c b/drivers/cpufreq/tegra194-cpufreq.c index 9055dd398e7f..9b4f516f313e 100644 --- a/drivers/cpufreq/tegra194-cpufreq.c +++ b/drivers/cpufreq/tegra194-cpufreq.c @@ -589,7 +589,6 @@ static struct cpufreq_driver tegra194_cpufreq_driver = { .exit = tegra194_cpufreq_exit, .online = tegra194_cpufreq_online, .offline = tegra194_cpufreq_offline, - .attr = cpufreq_generic_attr, }; static struct tegra_cpufreq_ops tegra194_cpufreq_ops = { 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: 13948200 X-Patchwork-Delegate: viresh.linux@gmail.com 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 Acked-by: Sudeep Holla --- 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:07 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 13948201 X-Patchwork-Delegate: viresh.linux@gmail.com 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 E339A217F56 for ; Thu, 23 Jan 2025 11:39:46 +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=1737632388; cv=none; b=KCFvLI4bGLGZ0rf/C/P9iYzoLLNO2dZiG1LjE3K0m1M0Mu4Fif9OmzwTG7z4WFTb46zz2qAULUPEb5waZ88ixCKlGemhEm6nnUJIQ4cXjoYSjhdl9SkqnhrB1WpeHOlKpQYEdwPNsqcN5QDY3JXrvSMYLeOEWwY2aJyBNT7l5WM= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1737632388; c=relaxed/simple; bh=qdYaBq1Q1yEL+rIvhlhaYVfASvfIfTKZczb9vnsCgp8=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=ncDTeEC9OFSE2fRgvPpkUySLcUhHgzBI1XdwU4exRVjW8AosijdFp5Sk6ibQ1EKgw795KZh7srpUiAqwJjzJPNi0CnovEe3LXIYz9Z3vR6zsPqCiplwov8oTiBFGyUC2LopMNrnVgo9ibr5Rn5zc52gFnMU2Em22GUROCH/fAwU= 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=JO7+CGEc; 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="JO7+CGEc" Received: by mail-pl1-f178.google.com with SMTP id d9443c01a7336-2156e078563so10102465ad.2 for ; Thu, 23 Jan 2025 03:39:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1737632386; x=1738237186; 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=mZN744IIikaolPVQBfMUPuwC2jdu5k0xBOOUnBiu/B0=; b=JO7+CGEcnOHTFFWwDCWD3e8GpBvtcCB8GNiXsofXpG4oPow5l98Qlkr/h2sFZ14pM6 VfUq0/xzalBj9JQBI8X1wz7pniYshz7A9elNoV9dklRTzx1kD0DlDZwLCbGO3xuEWqj3 a/8MWMb5CTVVlGzbEc+tTsYS2CHLtd7rUyI2tDenKtUZ23Pf0eIMIm/+aJhnEECQAvRp nqgB7FwgrepKxSn6s7njdR/o95bYVu5Z0XNbJauRwtxxwQdYF+GXXstZXRGqOiG8Tpem YaxfbQevPWRC+6QvUGePXeH1PDWXmLGCDdSmCgSWeKl/7bzcbmYGsOZbS0GtVLOH1EZE HeHg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1737632386; x=1738237186; 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=mZN744IIikaolPVQBfMUPuwC2jdu5k0xBOOUnBiu/B0=; b=JQvIjNp//s/Jflp8HHFnszbke4Uz8SpsXq1taJuLtodtOxWoFcj+16eTFKLzZWQx+F mcd53sEZXOpUqxG/KYb9evdgm9mCX+49c0mpp6Ry4xazHP9jHsQxJTe6rnCkKY1+/fvB EJWLQPu1wEoJlx1qWKAwZGL3N95Chk9ct0zZ9gQs+z1CcmO5vLwYDLmFvi59QviSiXZx T/NUa/R+lVya32bLFv3J4kPZI6c0xRae+e9pmQG852BfRbsXYe3ZykOOwxPUdU2VnSAv Tft21NBNGjqMl/hRckDsSF4oy+tiwWPrGI+SqZaW2CUCXMt4WvnoqPhqmpkwtbt1KLVN JuZg== X-Gm-Message-State: AOJu0Yw0jer6rYKOU1C/vVZjRvVdGcZ3r3MaoHzRoKZjC2xCD4e0edkD EoT6JKsGHG+ZdF8Q/E6QF4/bQfPsemr6Aa3T0FQhm7lU37dMaRLuvg4HcwtFxZNoAw+CDDHN7f7 h X-Gm-Gg: ASbGncu6AmXAFwi+NN3a5CcdOYcuMRmT8EVtCW9qKQdYvkX/InTkSEDhkqmBJ3IRtmt xbcjmMr74SnocdW8myMviSY4sZBPZGLpG4NJ4+e1LiLtom5XJAhGHeh0pfJwOc81RiEX/C7vWMv 0w0QS5hZH8NGI46gADJQR5Ay7E8TWwsxXM4aVPO/uY6Ae7DLHnB4NLkfXlKZ7/rH0Z+K8S4n8G9 pUnmguP6ZSlM8YqNugTDfSsbQjV5HY9xAJ8TGHjURSW5MspjGS1ERg4tk0IrHyqsAoASWNjBiEu jFYLfcs= X-Google-Smtp-Source: AGHT+IH8bcJpDg4V5yC0nWgdxJWWOCO6JUGTm1wcRp6iDPkksvPd9U80jdnIZi+pnk1nG+wxG9yuSA== X-Received: by 2002:a17:902:eccc:b0:20b:8a71:b5c1 with SMTP id d9443c01a7336-21c352c7d0fmr420284665ad.1.1737632386324; Thu, 23 Jan 2025 03:39:46 -0800 (PST) Received: from localhost ([122.172.84.139]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-21c2cebaebcsm111592955ad.99.2025.01.23.03.39.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 Jan 2025 03:39:45 -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 31/33] cpufreq: virtual: Stop setting cpufreq_driver->attr field Date: Thu, 23 Jan 2025 17:06:07 +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/virtual-cpufreq.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/cpufreq/virtual-cpufreq.c b/drivers/cpufreq/virtual-cpufreq.c index a050b3a6737f..45becb92aa4a 100644 --- a/drivers/cpufreq/virtual-cpufreq.c +++ b/drivers/cpufreq/virtual-cpufreq.c @@ -265,7 +265,6 @@ static struct cpufreq_driver cpufreq_virt_driver = { .verify = virt_cpufreq_verify_policy, .target = virt_cpufreq_target, .fast_switch = virt_cpufreq_fast_switch, - .attr = cpufreq_generic_attr, }; static int virt_cpufreq_driver_probe(struct platform_device *pdev) 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: 13948202 X-Patchwork-Delegate: viresh.linux@gmail.com 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); From patchwork Thu Jan 23 11:36:09 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 13948203 X-Patchwork-Delegate: viresh.linux@gmail.com Received: from mail-pl1-f177.google.com (mail-pl1-f177.google.com [209.85.214.177]) (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 EDAF1218AAA for ; Thu, 23 Jan 2025 11:39:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.177 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1737632395; cv=none; b=ljjE7lgE9xMsBXtym2PNhMJdqhBeOtiy54IvMYDYeQ7C6xM/Ijz58VSGrwcUwb3Ho3xBwzBzZtTpVct+oVSDmDywM3dLpOuM3EL4viwCN1UPtNr3c4urysq86JNARmsHvvarfd8fy1GPrk9BICGDA5LUgiaVWcjHDVdE6kSo5HM= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1737632395; c=relaxed/simple; bh=VN9IacOPeI5nUxWK7zWMJWorTJy+PSNeXSys/yXQA0s=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=R6xrcnGBE10rheBO8plIg2fg+yGQLVst8GfMtf0xitnMNrhBpfK6rsPxAIxB9smRmgM9dj331jz4sKyh8jXfScceUeic6AQ0g1MuvIeL2XrK63+WiJXuIPdhoSBeYcmGM7mlNMGMaaoeT2TM2RwSML1znvT7czhqLkcC3Ma8IsI= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=NXWcqgCo; arc=none smtp.client-ip=209.85.214.177 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="NXWcqgCo" Received: by mail-pl1-f177.google.com with SMTP id d9443c01a7336-21631789fcdso26135365ad.1 for ; Thu, 23 Jan 2025 03:39:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1737632393; x=1738237193; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=HpR6CUvCRb/ja749qvOp/VQU58xavrM06pOATjKwG2I=; b=NXWcqgCou+EvQapK8HIFRDQa0eZ8aNmFAhBILPHZsqT/awlQjFmwKP5256Xs8sJN/O g6TWhCENVKHsT9OwuMYxsfKPnnU94t5wXQBASPMA70jjmAfiXOZXhV/o+RrRLgXewft4 7aXyh+uO8Vb2eu85NYUlcs2G1xWUSbz8z68s+4Oda6FK0YEJiurtxyNdHZWpM5ExNmxe PwEO7FktE6I5ZdZYQtuy7zQB3MeTMRsBn+eSIzrqngbtmI8W3/P5WHlLYDUqb2zk9DW5 tU/hbMx1GUJkte7j3RqXBKZ5TLPoveuNwbAGBQjB6H3E5O+Amj7lbt/t7eaYcafcq5z3 i8sQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1737632393; x=1738237193; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=HpR6CUvCRb/ja749qvOp/VQU58xavrM06pOATjKwG2I=; b=dokc7cPuP0VhYjRfHrvE9y0/u5gXVOc62Bjjg2Nc6NQZ62fF7VRDxzLNI7VedU4Ar8 IELinMXjLlnfc7agUacc6zvjStVBPHQAtMUvIN5z8Bqbaoq4gotG35MvRG2b/LnoG1Dm 813S9JSv9htGgVXaVzKke0R8oWMw/Uifn1+ItrU2YThtUm1GHEdBsqrRzCLqvMubyAnO 3caVzocJc4gp3CIs+8pXFHaoveOYG7+yO85NAGVRJz6nB1D9XYFm35gUdPPwIerutuGp ZiJj3bbBiTEo+fwiuvmB0E5UtNHCGaf60nlxAfaAffQDqz4tgxaS4QWve32BzC5jtXUV sa8w== X-Gm-Message-State: AOJu0Yz8lCPVktoAcPT/4r5EMKS8ixsttwFKek1bLZ98/jDDOAHofEa3 hfAaTzxMbVpa9VJyLOZrvTTVESiRHSAIs6pZVQdGgRUOqSiqH8qA8SrEW4/DXOw= X-Gm-Gg: ASbGncukafznyJHYkny1SxoA4Fek6YD172NtVunD4USv1p8/ijwgXbIbjWU32Pgg/k+ 98FAvkZ0giyKVTO4E/eY7sgF9ExMX5PnD1YF9Es25triWbgdZyYFT2H2zTzMS6tnOvR+WsPCob4 wAxHmxwjfgy9dNtvCWvf+dIH1iDnh3r3mPlIsNnKwEtZb1nR8kSKOiZFXLmBKBbwmEBTIxTwjjC YAEPo40+mxgpQLMn22oNjgT+Vj4kmzA/SuvXz8kSMS9MS4cKg3nVsaMaeEJDbWcr4uPk5lv53gF yzYOvHM= X-Google-Smtp-Source: AGHT+IGo++1b7/8/COkEZYhpLDYX941EcGajeBPmeTjsJgAikmQ5GvL8OOkXH/im95bhumUzwE6Bwg== X-Received: by 2002:a05:6a20:3948:b0:1ea:f941:8d8e with SMTP id adf61e73a8af0-1eb6978d3a5mr4736487637.16.1737632393186; Thu, 23 Jan 2025 03:39:53 -0800 (PST) Received: from localhost ([122.172.84.139]) by smtp.gmail.com with ESMTPSA id 41be03b00d2f7-a9bdd30cdecsm12394311a12.57.2025.01.23.03.39.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 Jan 2025 03:39:52 -0800 (PST) From: Viresh Kumar To: "Rafael J. Wysocki" , Viresh Kumar Cc: linux-pm@vger.kernel.org, Vincent Guittot , linux-kernel@vger.kernel.org Subject: [PATCH 33/33] cpufreq: Stop checking for duplicate available/boost freq attributes Date: Thu, 23 Jan 2025 17:06:09 +0530 Message-Id: <320e85838d2f19f6cbd5a66aee934cbaf4f60016.1737631669.git.viresh.kumar@linaro.org> X-Mailer: git-send-email 2.31.1.272.g89b43f80a514 In-Reply-To: References: Precedence: bulk X-Mailing-List: linux-pm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 None of the drivers set these attributes directly now, remove the unnecessary check. Signed-off-by: Viresh Kumar --- drivers/cpufreq/cpufreq.c | 7 ------- 1 file changed, 7 deletions(-) diff --git a/drivers/cpufreq/cpufreq.c b/drivers/cpufreq/cpufreq.c index 973bd6e4bdd4..2569f9980d2c 100644 --- a/drivers/cpufreq/cpufreq.c +++ b/drivers/cpufreq/cpufreq.c @@ -1076,13 +1076,6 @@ static int cpufreq_add_dev_interface(struct cpufreq_policy *policy) /* set up files for this cpu device */ drv_attr = cpufreq_driver->attr; while (drv_attr && *drv_attr) { - /* These are already added, skip them */ - if (*drv_attr == &cpufreq_freq_attr_scaling_available_freqs || - *drv_attr == &cpufreq_freq_attr_scaling_boost_freqs) { - drv_attr++; - continue; - } - ret = sysfs_create_file(&policy->kobj, &((*drv_attr)->attr)); if (ret) return ret;