linux-stable/arch/x86/kernel/cpu/resctrl
Reinette Chatre 0118ad82c2 x86/cpu: Move resctrl CPUID code to resctrl/
The function determining a platform's support and properties of cache
occupancy and memory bandwidth monitoring (properties of
X86_FEATURE_CQM_LLC) can be found among the common CPU code. After
the feature's properties is populated in the per-CPU data the resctrl
subsystem is the only consumer (via boot_cpu_data).

Move the function that obtains the CPU information used by resctrl to
the resctrl subsystem and rename it from init_cqm() to
resctrl_cpu_detect(). The function continues to be called from the
common CPU code. This move is done in preparation of the addition of some
vendor specific code.

No functional change.

Suggested-by: Borislav Petkov <bp@suse.de>
Signed-off-by: Reinette Chatre <reinette.chatre@intel.com>
Signed-off-by: Borislav Petkov <bp@suse.de>
Link: https://lkml.kernel.org/r/38433b99f9d16c8f4ee796f8cc42b871531fa203.1588715690.git.reinette.chatre@intel.com
2020-05-06 17:51:21 +02:00
..
core.c x86/cpu: Move resctrl CPUID code to resctrl/ 2020-05-06 17:51:21 +02:00
ctrlmondata.c x86/resctrl: Prevent NULL pointer dereference when reading mondata 2019-11-03 17:51:22 +01:00
internal.h x86/resctrl: Preserve CDP enable over CPU hotplug 2020-04-17 19:35:01 +02:00
Makefile x86/resctrl: Avoid confusion over the new X86_RESCTRL config 2019-02-02 10:34:52 +01:00
monitor.c x86/resctrl: Check monitoring static key in the MBM overflow handler 2020-01-17 19:32:32 +01:00
pseudo_lock.c x86/resctrl: Rename asm/resctrl_sched.h to asm/resctrl.h 2020-05-06 17:45:22 +02:00
pseudo_lock_event.h
rdtgroup.c x86/resctrl: Rename asm/resctrl_sched.h to asm/resctrl.h 2020-05-06 17:45:22 +02:00