aboutsummaryrefslogtreecommitdiff
path: root/scripts/gdb/linux/mm.py
diff options
context:
space:
mode:
authorSrinivas Pandruvada <[email protected]>2022-02-03 16:03:04 -0800
committerHans de Goede <[email protected]>2022-02-17 13:20:30 +0100
commitae7b2ce578513adf0a77f0127e27ee4447d50443 (patch)
tree91c6adec71b86be9d0bdf5eb97c3556488141727 /scripts/gdb/linux/mm.py
parentce2645c458b5c83b0872ea9e39d2c3293445353a (diff)
platform/x86/intel/uncore-freq: Use sysfs API to create attributes
Use of sysfs API is always preferable over using kobject calls to create attributes. Remove usage of kobject_init_and_add() and use sysfs_create_group(). To create relationship between sysfs attribute and uncore instance use device_attribute*, which is defined per uncore instance. To create uniform locking for both read and write attributes take lock in the sysfs callbacks, not in the actual functions where the MSRs are read or updated. No functional changes are expected. Signed-off-by: Srinivas Pandruvada <[email protected]> Acked-by: Rafael J. Wysocki <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Hans de Goede <[email protected]>
Diffstat (limited to 'scripts/gdb/linux/mm.py')
0 files changed, 0 insertions, 0 deletions