linux-pm.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* thermal: cpu_cooling: Power calculation when CPUs are hotplugged
@ 2015-03-11 17:53 Kapileshwar Singh
  2015-03-11 17:53 ` [PATCH 1/2] thermal: cpu_cooling: Remove cpu_dev update on policy CPU update Kapileshwar Singh
  2015-03-11 17:53 ` [PATCH 2/2] thermal: cpu_cooling: Fix power calculation when CPUs are offline Kapileshwar Singh
  0 siblings, 2 replies; 4+ messages in thread
From: Kapileshwar Singh @ 2015-03-11 17:53 UTC (permalink / raw)
  To: linux-pm
  Cc: edubezval, rui.zhang, Javi.Merino, Punit.Agrawal,
	kapileshwar.singh

The following patch series aims at correcting the requested power
calculation when CPUs are hotplugged out. These patches are based on
the "linus" branch of Eduardo's tree.

There is no need to update the cpu_dev pointer (cached) on the reception of a
policy CPU update notifier from cpufreq. This is not required as OPPs
can be ascertained even if the CPU is offline.

cpufreq_get_requested power ensures that a CPU is online before calculating
the frequency for the CPUs and returns the power as 0 if all the CPUs
are offline in the cooling device.

Regards,
KP



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

end of thread, other threads:[~2015-03-13  4:39 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-03-11 17:53 thermal: cpu_cooling: Power calculation when CPUs are hotplugged Kapileshwar Singh
2015-03-11 17:53 ` [PATCH 1/2] thermal: cpu_cooling: Remove cpu_dev update on policy CPU update Kapileshwar Singh
2015-03-13  4:39   ` Eduardo Valentin
2015-03-11 17:53 ` [PATCH 2/2] thermal: cpu_cooling: Fix power calculation when CPUs are offline Kapileshwar Singh

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).