lkml.org 
[lkml]   [2018]   [Sep]   [24]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[RFC PATCH 05/10] arch/x86: Use new config parameter PLATFORM_QOS for compilation
    Date
    Use newly added config parameter PLATFORM_QOS to compile sources.
    This is common parameter across both Intel and AMD.

    Signed-off-by: Babu Moger <babu.moger@amd.com>
    ---
    arch/x86/include/asm/rdt_sched.h | 4 ++--
    arch/x86/kernel/cpu/Makefile | 4 ++--
    include/linux/sched.h | 2 +-
    3 files changed, 5 insertions(+), 5 deletions(-)

    diff --git a/arch/x86/include/asm/rdt_sched.h b/arch/x86/include/asm/rdt_sched.h
    index 666bf9acb41d..6018a362d1cf 100644
    --- a/arch/x86/include/asm/rdt_sched.h
    +++ b/arch/x86/include/asm/rdt_sched.h
    @@ -2,7 +2,7 @@
    #ifndef _ASM_X86_RDT_SCHED_H
    #define _ASM_X86_RDT_SCHED_H

    -#ifdef CONFIG_INTEL_RDT
    +#ifdef CONFIG_PLATFORM_QOS

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

    static inline void rdt_sched_in(void) {}

    -#endif /* CONFIG_INTEL_RDT */
    +#endif /* CONFIG_PLATFORM_QOS */

    #endif /* _ASM_X86_RDT_SCHED_H */
    diff --git a/arch/x86/kernel/cpu/Makefile b/arch/x86/kernel/cpu/Makefile
    index 6c35d89f174f..8655adc84f11 100644
    --- a/arch/x86/kernel/cpu/Makefile
    +++ b/arch/x86/kernel/cpu/Makefile
    @@ -35,8 +35,8 @@ obj-$(CONFIG_CPU_SUP_CENTAUR) += centaur.o
    obj-$(CONFIG_CPU_SUP_TRANSMETA_32) += transmeta.o
    obj-$(CONFIG_CPU_SUP_UMC_32) += umc.o

    -obj-$(CONFIG_INTEL_RDT) += rdt.o rdt_rdtgroup.o rdt_monitor.o
    -obj-$(CONFIG_INTEL_RDT) += rdt_ctrlmondata.o rdt_pseudo_lock.o
    +obj-$(CONFIG_PLATFORM_QOS) += rdt.o rdt_rdtgroup.o rdt_monitor.o
    +obj-$(CONFIG_PLATFORM_QOS) += rdt_ctrlmondata.o rdt_pseudo_lock.o
    CFLAGS_rdt_pseudo_lock.o = -I$(src)

    obj-$(CONFIG_X86_MCE) += mcheck/
    diff --git a/include/linux/sched.h b/include/linux/sched.h
    index 977cb57d7bc9..1a4d00b7a5b1 100644
    --- a/include/linux/sched.h
    +++ b/include/linux/sched.h
    @@ -985,7 +985,7 @@ struct task_struct {
    /* cg_list protected by css_set_lock and tsk->alloc_lock: */
    struct list_head cg_list;
    #endif
    -#ifdef CONFIG_INTEL_RDT
    +#ifdef CONFIG_PLATFORM_QOS
    u32 closid;
    u32 rmid;
    #endif
    --
    2.17.1
    \
     
     \ /
      Last update: 2018-09-24 21:20    [W:4.428 / U:0.440 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site