lkml.org 
[lkml]   [2016]   [Aug]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: [PATCH] ARM: cpuidle: declare cpuidle_ops __read_mostly
Date
On Wednesday, August 10, 2016 4:49:57 PM CEST Jisheng Zhang wrote:
> diff --git a/arch/arm/kernel/cpuidle.c b/arch/arm/kernel/cpuidle.c
> index 7dccc96..762e0929 100644
> --- a/arch/arm/kernel/cpuidle.c
> +++ b/arch/arm/kernel/cpuidle.c
> @@ -19,7 +19,7 @@ extern struct of_cpuidle_method __cpuidle_method_of_table[];
> static const struct of_cpuidle_method __cpuidle_method_of_table_sentinel
> __used __section(__cpuidle_method_of_table_end);
>
> -static struct cpuidle_ops cpuidle_ops[NR_CPUS];
> +static struct cpuidle_ops cpuidle_ops[NR_CPUS] __read_mostly;

Should this perhaps be percpu data instead?

Arnd

\
 
 \ /
  Last update: 2016-08-10 21:41    [W:0.086 / U:1.116 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site