linux-pm.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] cpufreq: schedutil: Correct comment to update_lock of struct sugov_policy
@ 2021-02-18  9:23 Yue Hu
  2021-02-18  9:26 ` Viresh Kumar
  0 siblings, 1 reply; 3+ messages in thread
From: Yue Hu @ 2021-02-18  9:23 UTC (permalink / raw)
  To: rjw, viresh.kumar, mingo, peterz, juri.lelli, vincent.guittot
  Cc: dietmar.eggemann, rostedt, bsegall, linux-pm, huyue2, zbestahu

From: Yue Hu <huyue2@yulong.com>

Currently, update_lock is also used in sugov_update_single_freq().

Signed-off-by: Yue Hu <huyue2@yulong.com>
---
 kernel/sched/cpufreq_schedutil.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/kernel/sched/cpufreq_schedutil.c b/kernel/sched/cpufreq_schedutil.c
index add8081..cc0308c 100644
--- a/kernel/sched/cpufreq_schedutil.c
+++ b/kernel/sched/cpufreq_schedutil.c
@@ -26,7 +26,7 @@ struct sugov_policy {
 	struct sugov_tunables	*tunables;
 	struct list_head	tunables_hook;
 
-	raw_spinlock_t		update_lock;	/* For shared policies */
+	raw_spinlock_t		update_lock;	/* For single + shared policies */
 	u64			last_freq_update_time;
 	s64			freq_update_delay_ns;
 	unsigned int		next_freq;
-- 
1.9.1


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

* Re: [PATCH] cpufreq: schedutil: Correct comment to update_lock of struct sugov_policy
  2021-02-18  9:23 [PATCH] cpufreq: schedutil: Correct comment to update_lock of struct sugov_policy Yue Hu
@ 2021-02-18  9:26 ` Viresh Kumar
  2021-02-18  9:28   ` Yue Hu
  0 siblings, 1 reply; 3+ messages in thread
From: Viresh Kumar @ 2021-02-18  9:26 UTC (permalink / raw)
  To: Yue Hu
  Cc: rjw, mingo, peterz, juri.lelli, vincent.guittot, dietmar.eggemann,
	rostedt, bsegall, linux-pm, huyue2, zbestahu

On 18-02-21, 17:23, Yue Hu wrote:
> From: Yue Hu <huyue2@yulong.com>
> 
> Currently, update_lock is also used in sugov_update_single_freq().
> 
> Signed-off-by: Yue Hu <huyue2@yulong.com>
> ---
>  kernel/sched/cpufreq_schedutil.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/kernel/sched/cpufreq_schedutil.c b/kernel/sched/cpufreq_schedutil.c
> index add8081..cc0308c 100644
> --- a/kernel/sched/cpufreq_schedutil.c
> +++ b/kernel/sched/cpufreq_schedutil.c
> @@ -26,7 +26,7 @@ struct sugov_policy {
>  	struct sugov_tunables	*tunables;
>  	struct list_head	tunables_hook;
>  
> -	raw_spinlock_t		update_lock;	/* For shared policies */
> +	raw_spinlock_t		update_lock;	/* For single + shared policies */

I will just remove the comments, its pretty much useless anyway.

-- 
viresh

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

* Re: [PATCH] cpufreq: schedutil: Correct comment to update_lock of struct sugov_policy
  2021-02-18  9:26 ` Viresh Kumar
@ 2021-02-18  9:28   ` Yue Hu
  0 siblings, 0 replies; 3+ messages in thread
From: Yue Hu @ 2021-02-18  9:28 UTC (permalink / raw)
  To: Viresh Kumar
  Cc: rjw, mingo, peterz, juri.lelli, vincent.guittot, dietmar.eggemann,
	rostedt, bsegall, linux-pm, huyue2, zbestahu

On Thu, 18 Feb 2021 14:56:58 +0530
Viresh Kumar <viresh.kumar@linaro.org> wrote:

> On 18-02-21, 17:23, Yue Hu wrote:
> > From: Yue Hu <huyue2@yulong.com>
> > 
> > Currently, update_lock is also used in sugov_update_single_freq().
> > 
> > Signed-off-by: Yue Hu <huyue2@yulong.com>
> > ---
> >  kernel/sched/cpufreq_schedutil.c | 2 +-
> >  1 file changed, 1 insertion(+), 1 deletion(-)
> > 
> > diff --git a/kernel/sched/cpufreq_schedutil.c
> > b/kernel/sched/cpufreq_schedutil.c index add8081..cc0308c 100644
> > --- a/kernel/sched/cpufreq_schedutil.c
> > +++ b/kernel/sched/cpufreq_schedutil.c
> > @@ -26,7 +26,7 @@ struct sugov_policy {
> >  	struct sugov_tunables	*tunables;
> >  	struct list_head	tunables_hook;
> >  
> > -	raw_spinlock_t		update_lock;	/* For
> > shared policies */
> > +	raw_spinlock_t		update_lock;	/* For
> > single + shared policies */  
> 
> I will just remove the comments, its pretty much useless anyway.
> 

ok, i will do it.

Thx.

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

end of thread, other threads:[~2021-02-18 10:50 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-02-18  9:23 [PATCH] cpufreq: schedutil: Correct comment to update_lock of struct sugov_policy Yue Hu
2021-02-18  9:26 ` Viresh Kumar
2021-02-18  9:28   ` Yue Hu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).