All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/7] cpufreq: Call transition notifier only once for each policy
@ 2019-03-14  6:42 ` Viresh Kumar
  0 siblings, 0 replies; 36+ messages in thread
From: Viresh Kumar @ 2019-03-14  6:42 UTC (permalink / raw)
  To: Rafael Wysocki, Borislav Petkov, David S. Miller, H. Peter Anvin,
	Ingo Molnar, Paolo Bonzini, Radim Krčmář,
	Russell King, Thomas Gleixner, x86
  Cc: Viresh Kumar, linux-pm, Vincent Guittot, kvm, linux-arm-kernel,
	linux-kernel, sparclinux

Currently we call the cpufreq transition notifiers once for each CPU of
the policy->cpus cpumask, which isn't that efficient. This patchset
tries to simplify that by adding another field in struct cpufreq_freqs,
cpus, so the callback has all the information available with a single
call for each policy.

I have tested this on arm64 platform and is compile tested for other
platforms. This has gone through 0-day testing as well, I have pushed my
branch over a week back to the public tree which gets tested by 0-day
bot.

FWIW, it maybe possible to make the callback implementation more
efficient now that they are called only once for each policy, but this
patchset only did the minimum amount of changes to make sure we don't
end up breaking otherwise working code.

--
viresh

Viresh Kumar (7):
  cpufreq: Pass policy->related_cpus to transition notifiers
  ARM: smp: Update cpufreq transition notifier to handle multiple CPUs
  ARM: twd: Update cpufreq transition notifier to handle multiple CPUs
  sparc64: Update cpufreq transition notifier to handle multiple CPUs
  x86/tsc: Update cpufreq transition notifier to handle multiple CPUs
  KVM: x86: Update cpufreq transition notifier to handle multiple CPUs
  cpufreq: Call transition notifiers only once for each policy

 arch/arm/kernel/smp.c       | 23 ++++++++++++++---------
 arch/arm/kernel/smp_twd.c   |  9 ++++++---
 arch/sparc/kernel/time_64.c | 28 ++++++++++++++++------------
 arch/x86/kernel/tsc.c       | 31 ++++++++++++++++++++-----------
 arch/x86/kvm/x86.c          | 31 ++++++++++++++++++++-----------
 drivers/cpufreq/cpufreq.c   | 19 ++++++++++---------
 include/linux/cpufreq.h     |  2 +-
 7 files changed, 87 insertions(+), 56 deletions(-)

-- 
2.21.0.rc0.269.g1a574e7a288b


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

end of thread, other threads:[~2019-03-14 17:27 UTC | newest]

Thread overview: 36+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-03-14  6:42 [PATCH 0/7] cpufreq: Call transition notifier only once for each policy Viresh Kumar
2019-03-14  6:54 ` Viresh Kumar
2019-03-14  6:42 ` Viresh Kumar
2019-03-14  6:42 ` [PATCH 1/7] cpufreq: Pass policy->related_cpus to transition notifiers Viresh Kumar
2019-03-14  6:42 ` [PATCH 2/7] ARM: smp: Update cpufreq transition notifier to handle multiple CPUs Viresh Kumar
2019-03-14  6:42   ` Viresh Kumar
2019-03-14  6:42 ` [PATCH 3/7] ARM: twd: " Viresh Kumar
2019-03-14  6:42   ` Viresh Kumar
2019-03-14  6:42 ` [PATCH 4/7] sparc64: " Viresh Kumar
2019-03-14  6:54   ` Viresh Kumar
2019-03-14 17:27   ` David Miller
2019-03-14 17:27     ` David Miller
2019-03-14  6:42 ` [PATCH 5/7] x86/tsc: " Viresh Kumar
2019-03-14  9:33   ` Rafael J. Wysocki
2019-03-14 10:03     ` Viresh Kumar
2019-03-14  6:42 ` [PATCH 6/7] KVM: x86: " Viresh Kumar
2019-03-14  6:42 ` [PATCH 7/7] cpufreq: Call transition notifiers only once for each policy Viresh Kumar
2019-03-14  9:28 ` [PATCH 0/7] cpufreq: Call transition notifier " Rafael J. Wysocki
2019-03-14  9:28   ` Rafael J. Wysocki
2019-03-14  9:28   ` Rafael J. Wysocki
2019-03-14  9:28   ` Rafael J. Wysocki
2019-03-14  9:40   ` Rafael J. Wysocki
2019-03-14  9:40     ` Rafael J. Wysocki
2019-03-14  9:40     ` Rafael J. Wysocki
2019-03-14 10:18     ` Viresh Kumar
2019-03-14 10:30       ` Viresh Kumar
2019-03-14 10:18       ` Viresh Kumar
2019-03-14 10:16   ` Viresh Kumar
2019-03-14 10:28     ` Viresh Kumar
2019-03-14 10:16     ` Viresh Kumar
2019-03-14 10:55     ` Rafael J. Wysocki
2019-03-14 10:55       ` Rafael J. Wysocki
2019-03-14 10:55       ` Rafael J. Wysocki
2019-03-14 11:03       ` Viresh Kumar
2019-03-14 11:15         ` Viresh Kumar
2019-03-14 11:03         ` Viresh Kumar

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.