Skip to content

Commit e6d4293

Browse files
hnazsuryasaimadhu
authored andcommitted
x86/resctrl: Avoid confusion over the new X86_RESCTRL config
"Resource Control" is a very broad term for this CPU feature, and a term that is also associated with containers, cgroups etc. This can easily cause confusion. Make the user prompt more specific. Match the config symbol name. [ bp: In the future, the corresponding ARM arch-specific code will be under ARM_CPU_RESCTRL and the arch-agnostic bits will be carved out under the CPU_RESCTRL umbrella symbol. ] Signed-off-by: Johannes Weiner <hannes@cmpxchg.org> Signed-off-by: Borislav Petkov <bp@suse.de> Cc: Babu Moger <Babu.Moger@amd.com> Cc: Fenghua Yu <fenghua.yu@intel.com> Cc: "H. Peter Anvin" <hpa@zytor.com> Cc: Ingo Molnar <mingo@redhat.com> Cc: James Morse <james.morse@arm.com> Cc: Jonathan Corbet <corbet@lwn.net> Cc: "Kirill A. Shutemov" <kirill.shutemov@linux.intel.com> Cc: linux-doc@vger.kernel.org Cc: Peter Zijlstra <peterz@infradead.org> Cc: Pu Wen <puwen@hygon.cn> Cc: Reinette Chatre <reinette.chatre@intel.com> Cc: Thomas Gleixner <tglx@linutronix.de> Cc: Tony Luck <tony.luck@intel.com> Cc: x86-ml <x86@kernel.org> Link: https://lkml.kernel.org/r/20190130195621.GA30653@cmpxchg.org
1 parent 2aa958c commit e6d4293

File tree

6 files changed

+10
-10
lines changed

6 files changed

+10
-10
lines changed

Documentation/x86/resctrl_ui.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ Fenghua Yu <fenghua.yu@intel.com>
99
Tony Luck <tony.luck@intel.com>
1010
Vikas Shivappa <vikas.shivappa@intel.com>
1111

12-
This feature is enabled by the CONFIG_X86_RESCTRL and the x86 /proc/cpuinfo
12+
This feature is enabled by the CONFIG_X86_CPU_RESCTRL and the x86 /proc/cpuinfo
1313
flag bits:
1414
RDT (Resource Director Technology) Allocation - "rdt_a"
1515
CAT (Cache Allocation Technology) - "cat_l3", "cat_l2"

arch/x86/Kconfig

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -446,12 +446,12 @@ config RETPOLINE
446446
branches. Requires a compiler with -mindirect-branch=thunk-extern
447447
support for full protection. The kernel may run slower.
448448

449-
config X86_RESCTRL
450-
bool "Resource Control support"
449+
config X86_CPU_RESCTRL
450+
bool "x86 CPU resource control support"
451451
depends on X86 && (CPU_SUP_INTEL || CPU_SUP_AMD)
452452
select KERNFS
453453
help
454-
Enable Resource Control support.
454+
Enable x86 CPU resource control support.
455455

456456
Provide support for the allocation and monitoring of system resources
457457
usage by the CPU.

arch/x86/include/asm/resctrl_sched.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
#ifndef _ASM_X86_RESCTRL_SCHED_H
33
#define _ASM_X86_RESCTRL_SCHED_H
44

5-
#ifdef CONFIG_X86_RESCTRL
5+
#ifdef CONFIG_X86_CPU_RESCTRL
66

77
#include <linux/sched.h>
88
#include <linux/jump_label.h>
@@ -88,6 +88,6 @@ static inline void resctrl_sched_in(void)
8888

8989
static inline void resctrl_sched_in(void) {}
9090

91-
#endif /* CONFIG_X86_RESCTRL */
91+
#endif /* CONFIG_X86_CPU_RESCTRL */
9292

9393
#endif /* _ASM_X86_RESCTRL_SCHED_H */

arch/x86/kernel/cpu/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ obj-$(CONFIG_CPU_SUP_UMC_32) += umc.o
3939
obj-$(CONFIG_X86_MCE) += mce/
4040
obj-$(CONFIG_MTRR) += mtrr/
4141
obj-$(CONFIG_MICROCODE) += microcode/
42-
obj-$(CONFIG_X86_RESCTRL) += resctrl/
42+
obj-$(CONFIG_X86_CPU_RESCTRL) += resctrl/
4343

4444
obj-$(CONFIG_X86_LOCAL_APIC) += perfctr-watchdog.o
4545

arch/x86/kernel/cpu/resctrl/Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
# SPDX-License-Identifier: GPL-2.0
2-
obj-$(CONFIG_X86_RESCTRL) += core.o rdtgroup.o monitor.o
3-
obj-$(CONFIG_X86_RESCTRL) += ctrlmondata.o pseudo_lock.o
2+
obj-$(CONFIG_X86_CPU_RESCTRL) += core.o rdtgroup.o monitor.o
3+
obj-$(CONFIG_X86_CPU_RESCTRL) += ctrlmondata.o pseudo_lock.o
44
CFLAGS_pseudo_lock.o = -I$(src)

include/linux/sched.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -995,7 +995,7 @@ struct task_struct {
995995
/* cg_list protected by css_set_lock and tsk->alloc_lock: */
996996
struct list_head cg_list;
997997
#endif
998-
#ifdef CONFIG_X86_RESCTRL
998+
#ifdef CONFIG_X86_CPU_RESCTRL
999999
u32 closid;
10001000
u32 rmid;
10011001
#endif

0 commit comments

Comments
 (0)