Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1515317
| From | Markus Mayer <code@mmayer.net> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | [PATCH v2 0/2] cpufreq: stats: clear statistics |
| Date | 2016-11-04 18:00 +0100 |
| Message-ID | <szQ0q-4l3-3@gated-at.bofh.it> (permalink) |
| Organization | linux.* mail to news gateway |
From: Markus Mayer <mmayer@broadcom.com>
This series lets the user clear the CPUfreq stats by writing to a new
sysfs attribute.
Changes since v1:
- add new cpufreq_freq_attr_wr_perm() macro for write-only
attributes (because this is a separate commit, this patch has
turned into a series)
- remove the Kconfig option, compiling the code unconditionally
- remove show_reset()
- cpufreq_stats_clear_table() takes a struct cpufreq_stats * as
argument rather than a struct cpufreq_policy *
For v1, see https://lkml.org/lkml/2016/11/3/581.
Markus Mayer (2):
cpufreq: add new attribute type cpufreq_freq_attr_wr_perm()
cpufreq: stats: clear statistics
Documentation/cpu-freq/cpufreq-stats.txt | 6 ++++++
drivers/cpufreq/cpufreq_stats.c | 22 ++++++++++++++++++++++
include/linux/cpufreq.h | 4 ++++
3 files changed, 32 insertions(+)
--
2.7.4
Back to linux.kernel | Previous | Next — Next in thread | Find similar | Unroll thread
[PATCH v2 0/2] cpufreq: stats: clear statistics Markus Mayer <code@mmayer.net> - 2016-11-04 18:00 +0100
[PATCH v2 2/2] cpufreq: stats: clear statistics Markus Mayer <code@mmayer.net> - 2016-11-04 18:00 +0100
Re: [PATCH v2 2/2] cpufreq: stats: clear statistics Viresh Kumar <viresh.kumar@linaro.org> - 2016-11-07 05:40 +0100
csiph-web