public inbox for cpufreq@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] cpufreq_conservative: initialize the cpu_dbs_info_s cpu field
@ 2013-04-23 14:41 John Blackwood
  2013-04-23 15:19 ` Viresh Kumar
  0 siblings, 1 reply; 3+ messages in thread
From: John Blackwood @ 2013-04-23 14:41 UTC (permalink / raw)
  To: Rafael J. Wysocki; +Cc: cpufreq, linux-pm

In the cpufreq conservative module, the cpu field in the cpu_dbs_info_s
structure was not being initialized, and thus all cpus were scheduling
their do_dbs_timer() delayed work processing on cpu 0.

Signed-off-by: John Blackwood <john.blackwood@ccur.com>
Index: b/drivers/cpufreq/cpufreq_conservative.c
===================================================================
--- a/drivers/cpufreq/cpufreq_conservative.c
+++ b/drivers/cpufreq/cpufreq_conservative.c
@@ -506,6 +506,7 @@ static int cpufreq_governor_dbs(struct c
  		}
  		this_dbs_info->down_skip = 0;
  		this_dbs_info->requested_freq = policy->cur;
+		this_dbs_info->cpu = cpu;

  		mutex_init(&this_dbs_info->timer_mutex);
  		dbs_enable++;

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

end of thread, other threads:[~2013-04-23 15:27 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-04-23 14:41 [PATCH] cpufreq_conservative: initialize the cpu_dbs_info_s cpu field John Blackwood
2013-04-23 15:19 ` Viresh Kumar
2013-04-23 15:27   ` John Blackwood

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox