summaryrefslogtreecommitdiffstats
path: root/drivers/md/dm-thin.c
diff options
context:
space:
mode:
authorZhang Rui2019-07-10 15:44:28 +0200
committerRafael J. Wysocki2019-07-11 15:08:57 +0200
commit8a00676cd690941c9a18bd390c3b2cade631c516 (patch)
treedbbb0ece835d52019ccf1a0fec1f34438a7080d0 /drivers/md/dm-thin.c
parentintel_rapl: abstract register access operations (diff)
downloadkernel-qcow2-linux-8a00676cd690941c9a18bd390c3b2cade631c516.tar.gz
kernel-qcow2-linux-8a00676cd690941c9a18bd390c3b2cade631c516.tar.xz
kernel-qcow2-linux-8a00676cd690941c9a18bd390c3b2cade631c516.zip
intel_rapl: cleanup some functions
Previously, there are three functions: rapl_register_psys(), which registers platform rapl domain. rapl_register_powercap(), which registers powercap control type. rapl_unregsiter_powercap(), which unregisters platform rapl domain and powercap control type. This is confusing as the function name does not describe what it does clearly. With this patch, the three functions are removed, and two new functions rapl_register_platform_domain()/rapl_unregister_platform_domain() are introduced instead, and they do exactly what their function name describes. Plus, as part of the common code, hardcoded MSR accesses in these functions are converted to follow the abstracted register access. Reviewed-by: Pandruvada, Srinivas <srinivas.pandruvada@intel.com> Tested-by: Pandruvada, Srinivas <srinivas.pandruvada@intel.com> Signed-off-by: Zhang Rui <rui.zhang@intel.com> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'drivers/md/dm-thin.c')
0 files changed, 0 insertions, 0 deletions