summaryrefslogtreecommitdiff
path: root/fs/cifs
diff options
context:
space:
mode:
authorAshwin Chaugule <ashwin.chaugule@linaro.org>2016-08-16 20:39:42 (GMT)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2016-08-30 23:02:34 (GMT)
commit158c998ea44ba30ae3d1bde535581c4436417530 (patch)
tree789ea59a8a466b0116b4db7e20d2be58bdf35267 /fs/cifs
parentbe8b88d7d9877114172b32817d8eb3e85d3d8f99 (diff)
downloadlinux-158c998ea44ba30ae3d1bde535581c4436417530.tar.xz
ACPI / CPPC: add sysfs support to compute delivered performance
The CPPC tables contain entries for per CPU feedback counters which allows us to compute the delivered performance over a given interval of time. The math for delivered performance per the CPPCv5.0+ spec is: reference perf * delta(delivered perf ctr)/delta(ref perf ctr) Maintaining deltas of the counters in the kernel is messy, as it depends on when the reads are triggered. (e.g. via the cpufreq ->get() interface). Also the ->get() interace only returns one value, so cant return raw values. So instead, leave it to userspace to keep track of raw values and do its math for CPUs it cares about. delivered and reference perf counters are exposed via the same sysfs file to avoid the potential "skid", if these values are read individually from userspace. Signed-off-by: Prashanth Prakash <pprakash@codeaurora.org> Signed-off-by: Ashwin Chaugule <ashwin.chaugule@linaro.org> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'fs/cifs')
0 files changed, 0 insertions, 0 deletions