All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] cpufreq: Remove unused for_each_policy macro
@ 2021-04-06  7:00 Shaokun Zhang
  2021-04-06  7:06 ` Viresh Kumar
  0 siblings, 1 reply; 3+ messages in thread
From: Shaokun Zhang @ 2021-04-06  7:00 UTC (permalink / raw)
  To: linux-pm; +Cc: Shaokun Zhang, Rafael J. Wysocki, Viresh Kumar

macro 'for_each_policy' has become unused since commit
f963735a3ca3 ("cpufreq: Create for_each_{in}active_policy()"),
Remove it.

Cc: "Rafael J. Wysocki" <rjw@rjwysocki.net>
Cc: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Shaokun Zhang <zhangshaokun@hisilicon.com>
---
 drivers/cpufreq/cpufreq.c | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/drivers/cpufreq/cpufreq.c b/drivers/cpufreq/cpufreq.c
index 1d1b563cea4b..802abc925b2a 100644
--- a/drivers/cpufreq/cpufreq.c
+++ b/drivers/cpufreq/cpufreq.c
@@ -42,9 +42,6 @@ static LIST_HEAD(cpufreq_policy_list);
 #define for_each_inactive_policy(__policy)		\
 	for_each_suitable_policy(__policy, false)
 
-#define for_each_policy(__policy)			\
-	list_for_each_entry(__policy, &cpufreq_policy_list, policy_list)
-
 /* Iterate over governors */
 static LIST_HEAD(cpufreq_governor_list);
 #define for_each_governor(__governor)				\
-- 
2.7.4


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH] cpufreq: Remove unused for_each_policy macro
  2021-04-06  7:00 [PATCH] cpufreq: Remove unused for_each_policy macro Shaokun Zhang
@ 2021-04-06  7:06 ` Viresh Kumar
  2021-04-08 17:28   ` Rafael J. Wysocki
  0 siblings, 1 reply; 3+ messages in thread
From: Viresh Kumar @ 2021-04-06  7:06 UTC (permalink / raw)
  To: Shaokun Zhang; +Cc: linux-pm, Rafael J. Wysocki

On 06-04-21, 15:00, Shaokun Zhang wrote:
> macro 'for_each_policy' has become unused since commit
> f963735a3ca3 ("cpufreq: Create for_each_{in}active_policy()"),
> Remove it.
> 
> Cc: "Rafael J. Wysocki" <rjw@rjwysocki.net>
> Cc: Viresh Kumar <viresh.kumar@linaro.org>
> Signed-off-by: Shaokun Zhang <zhangshaokun@hisilicon.com>
> ---
>  drivers/cpufreq/cpufreq.c | 3 ---
>  1 file changed, 3 deletions(-)
> 
> diff --git a/drivers/cpufreq/cpufreq.c b/drivers/cpufreq/cpufreq.c
> index 1d1b563cea4b..802abc925b2a 100644
> --- a/drivers/cpufreq/cpufreq.c
> +++ b/drivers/cpufreq/cpufreq.c
> @@ -42,9 +42,6 @@ static LIST_HEAD(cpufreq_policy_list);
>  #define for_each_inactive_policy(__policy)		\
>  	for_each_suitable_policy(__policy, false)
>  
> -#define for_each_policy(__policy)			\
> -	list_for_each_entry(__policy, &cpufreq_policy_list, policy_list)
> -
>  /* Iterate over governors */
>  static LIST_HEAD(cpufreq_governor_list);
>  #define for_each_governor(__governor)				\

Acked-by: Viresh Kumar <viresh.kumar@linaro.org>

-- 
viresh

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] cpufreq: Remove unused for_each_policy macro
  2021-04-06  7:06 ` Viresh Kumar
@ 2021-04-08 17:28   ` Rafael J. Wysocki
  0 siblings, 0 replies; 3+ messages in thread
From: Rafael J. Wysocki @ 2021-04-08 17:28 UTC (permalink / raw)
  To: Viresh Kumar, Shaokun Zhang; +Cc: Linux PM, Rafael J. Wysocki

On Tue, Apr 6, 2021 at 9:06 AM Viresh Kumar <viresh.kumar@linaro.org> wrote:
>
> On 06-04-21, 15:00, Shaokun Zhang wrote:
> > macro 'for_each_policy' has become unused since commit
> > f963735a3ca3 ("cpufreq: Create for_each_{in}active_policy()"),
> > Remove it.
> >
> > Cc: "Rafael J. Wysocki" <rjw@rjwysocki.net>
> > Cc: Viresh Kumar <viresh.kumar@linaro.org>
> > Signed-off-by: Shaokun Zhang <zhangshaokun@hisilicon.com>
> > ---
> >  drivers/cpufreq/cpufreq.c | 3 ---
> >  1 file changed, 3 deletions(-)
> >
> > diff --git a/drivers/cpufreq/cpufreq.c b/drivers/cpufreq/cpufreq.c
> > index 1d1b563cea4b..802abc925b2a 100644
> > --- a/drivers/cpufreq/cpufreq.c
> > +++ b/drivers/cpufreq/cpufreq.c
> > @@ -42,9 +42,6 @@ static LIST_HEAD(cpufreq_policy_list);
> >  #define for_each_inactive_policy(__policy)           \
> >       for_each_suitable_policy(__policy, false)
> >
> > -#define for_each_policy(__policy)                    \
> > -     list_for_each_entry(__policy, &cpufreq_policy_list, policy_list)
> > -
> >  /* Iterate over governors */
> >  static LIST_HEAD(cpufreq_governor_list);
> >  #define for_each_governor(__governor)                                \
>
> Acked-by: Viresh Kumar <viresh.kumar@linaro.org>

Applied as 5.13 material, thanks!

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2021-04-08 17:28 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-04-06  7:00 [PATCH] cpufreq: Remove unused for_each_policy macro Shaokun Zhang
2021-04-06  7:06 ` Viresh Kumar
2021-04-08 17:28   ` Rafael J. Wysocki

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.