aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVikas Shivappa <vikas.shivappa@linux.intel.com>2017-07-25 17:14:22 -0400
committerThomas Gleixner <tglx@linutronix.de>2017-08-01 16:41:19 -0400
commitf01d7d51f577b5dc0fa5919ab8a9228e2bf49f3e (patch)
treeb0d9ceaf2d88d906196d849025539aa423ce58a5
parent1640ae9471ae41eb18d2b214f1f40af3c4ed3828 (diff)
x86/intel_rdt: Introduce a common compile option for RDT
We currently have a CONFIG_RDT_A which is for RDT(Resource directory technology) allocation based resctrl filesystem interface. As a preparation to add support for RDT monitoring as well into the same resctrl filesystem, change the config option to be CONFIG_RDT which would include both RDT allocation and monitoring code. No functional change. Signed-off-by: Vikas Shivappa <vikas.shivappa@linux.intel.com> Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Cc: ravi.v.shankar@intel.com Cc: tony.luck@intel.com Cc: fenghua.yu@intel.com Cc: peterz@infradead.org Cc: eranian@google.com Cc: vikas.shivappa@intel.com Cc: ak@linux.intel.com Cc: davidcc@google.com Cc: reinette.chatre@intel.com Link: http://lkml.kernel.org/r/1501017287-28083-4-git-send-email-vikas.shivappa@linux.intel.com
-rw-r--r--arch/x86/Kconfig12
-rw-r--r--arch/x86/include/asm/intel_rdt.h4
-rw-r--r--arch/x86/kernel/cpu/Makefile2
-rw-r--r--include/linux/sched.h2
4 files changed, 10 insertions, 10 deletions
diff --git a/arch/x86/Kconfig b/arch/x86/Kconfig
index 781521b7cf9e..b1abda70c2d1 100644
--- a/arch/x86/Kconfig
+++ b/arch/x86/Kconfig
@@ -424,16 +424,16 @@ config GOLDFISH
424 def_bool y 424 def_bool y
425 depends on X86_GOLDFISH 425 depends on X86_GOLDFISH
426 426
427config INTEL_RDT_A 427config INTEL_RDT
428 bool "Intel Resource Director Technology Allocation support" 428 bool "Intel Resource Director Technology support"
429 default n 429 default n
430 depends on X86 && CPU_SUP_INTEL 430 depends on X86 && CPU_SUP_INTEL
431 select KERNFS 431 select KERNFS
432 help 432 help
433 Select to enable resource allocation which is a sub-feature of 433 Select to enable resource allocation and monitoring which are
434 Intel Resource Director Technology(RDT). More information about 434 sub-features of Intel Resource Director Technology(RDT). More
435 RDT can be found in the Intel x86 Architecture Software 435 information about RDT can be found in the Intel x86
436 Developer Manual. 436 Architecture Software Developer Manual.
437 437
438 Say N if unsure. 438 Say N if unsure.
439 439
diff --git a/arch/x86/include/asm/intel_rdt.h b/arch/x86/include/asm/intel_rdt.h
index 597dc4995678..ae1efc3609d3 100644
--- a/arch/x86/include/asm/intel_rdt.h
+++ b/arch/x86/include/asm/intel_rdt.h
@@ -1,7 +1,7 @@
1#ifndef _ASM_X86_INTEL_RDT_H 1#ifndef _ASM_X86_INTEL_RDT_H
2#define _ASM_X86_INTEL_RDT_H 2#define _ASM_X86_INTEL_RDT_H
3 3
4#ifdef CONFIG_INTEL_RDT_A 4#ifdef CONFIG_INTEL_RDT
5 5
6#include <linux/sched.h> 6#include <linux/sched.h>
7#include <linux/kernfs.h> 7#include <linux/kernfs.h>
@@ -282,5 +282,5 @@ static inline void intel_rdt_sched_in(void)
282 282
283static inline void intel_rdt_sched_in(void) {} 283static inline void intel_rdt_sched_in(void) {}
284 284
285#endif /* CONFIG_INTEL_RDT_A */ 285#endif /* CONFIG_INTEL_RDT */
286#endif /* _ASM_X86_INTEL_RDT_H */ 286#endif /* _ASM_X86_INTEL_RDT_H */
diff --git a/arch/x86/kernel/cpu/Makefile b/arch/x86/kernel/cpu/Makefile
index cdf82492b770..3622ca2b1555 100644
--- a/arch/x86/kernel/cpu/Makefile
+++ b/arch/x86/kernel/cpu/Makefile
@@ -33,7 +33,7 @@ obj-$(CONFIG_CPU_SUP_CENTAUR) += centaur.o
33obj-$(CONFIG_CPU_SUP_TRANSMETA_32) += transmeta.o 33obj-$(CONFIG_CPU_SUP_TRANSMETA_32) += transmeta.o
34obj-$(CONFIG_CPU_SUP_UMC_32) += umc.o 34obj-$(CONFIG_CPU_SUP_UMC_32) += umc.o
35 35
36obj-$(CONFIG_INTEL_RDT_A) += intel_rdt.o intel_rdt_rdtgroup.o intel_rdt_schemata.o 36obj-$(CONFIG_INTEL_RDT) += intel_rdt.o intel_rdt_rdtgroup.o intel_rdt_schemata.o
37 37
38obj-$(CONFIG_X86_MCE) += mcheck/ 38obj-$(CONFIG_X86_MCE) += mcheck/
39obj-$(CONFIG_MTRR) += mtrr/ 39obj-$(CONFIG_MTRR) += mtrr/
diff --git a/include/linux/sched.h b/include/linux/sched.h
index 8337e2db0bb2..20b2ff2f4fde 100644
--- a/include/linux/sched.h
+++ b/include/linux/sched.h
@@ -898,7 +898,7 @@ struct task_struct {
898 /* cg_list protected by css_set_lock and tsk->alloc_lock: */ 898 /* cg_list protected by css_set_lock and tsk->alloc_lock: */
899 struct list_head cg_list; 899 struct list_head cg_list;
900#endif 900#endif
901#ifdef CONFIG_INTEL_RDT_A 901#ifdef CONFIG_INTEL_RDT
902 int closid; 902 int closid;
903#endif 903#endif
904#ifdef CONFIG_FUTEX 904#ifdef CONFIG_FUTEX