Re: [PATCH v2 10/33] x86/intel_rdt: Implement scheduling support for Intel RDT

From: Nilay Vaish
Date: Tue Sep 13 2016 - 13:56:25 EST


On 8 September 2016 at 04:57, Fenghua Yu <fenghua.yu@xxxxxxxxx> wrote:
> diff --git a/arch/x86/kernel/cpu/intel_rdt.c b/arch/x86/kernel/cpu/intel_rdt.c
> index 9cf3a7d..9f30492 100644
> --- a/arch/x86/kernel/cpu/intel_rdt.c
> +++ b/arch/x86/kernel/cpu/intel_rdt.c
> @@ -21,6 +21,8 @@
> */
> #include <linux/slab.h>
> #include <linux/err.h>
> +#include <linux/sched.h>
> +#include <asm/pqr_common.h>
> #include <asm/intel_rdt.h>
>
> /*
> @@ -41,12 +43,28 @@ static cpumask_t rdt_cpumask;
> */
> static cpumask_t tmp_cpumask;
> static DEFINE_MUTEX(rdtgroup_mutex);
> +struct static_key __read_mostly rdt_enable_key = STATIC_KEY_INIT_FALSE;

I had pointed this for the previous version of the patch as well. You
should use DEFINE_STATIC_KEY_FALSE(rdt_enable_key), instead of what
you have here.

--
Nilay