diff options
author | 2023-01-13 09:20:33 -0600 | |
---|---|---|
committer | 2023-01-23 17:40:11 +0100 | |
commit | bd334c86b5d70e5d1c6169991802e62c828d6f38 (patch) | |
tree | db60906c4a78f579ce6d4e4c07fb26847027d4ac /scripts/generate_rust_analyzer.py | |
parent | x86/resctrl: Detect and configure Slow Memory Bandwidth Allocation (diff) | |
download | linux-rng-bd334c86b5d70e5d1c6169991802e62c828d6f38.tar.xz linux-rng-bd334c86b5d70e5d1c6169991802e62c828d6f38.zip |
x86/resctrl: Add __init attribute to rdt_get_mon_l3_config()
In an upcoming change, rdt_get_mon_l3_config() needs to call rdt_cpu_has() to
query the monitor related features. It cannot be called right now because
rdt_cpu_has() has the __init attribute but rdt_get_mon_l3_config() doesn't.
Add the __init attribute to rdt_get_mon_l3_config() that is only called by
get_rdt_mon_resources() that already has the __init attribute. Also make
rdt_cpu_has() available to by rdt_get_mon_l3_config() via the internal header
file.
Signed-off-by: Babu Moger <babu.moger@amd.com>
Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de>
Reviewed-by: Reinette Chatre <reinette.chatre@intel.com>
Link: https://lore.kernel.org/r/20230113152039.770054-8-babu.moger@amd.com
Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de>
Diffstat (limited to 'scripts/generate_rust_analyzer.py')
0 files changed, 0 insertions, 0 deletions