X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=kernel%2Fsched_cpupri.h;h=f6d756173491c87e3defef7e16547cd24d75fbfa;hb=0b0577f6080c0645b079dcc03fdbaf40d928beb8;hp=9fc7d386fea4b845f5e3be3183825d00d182cda9;hpb=c0f62edd400115e54c52692c1dc6f5bf58ea0ba6;p=profile%2Fivi%2Fkernel-adaptation-intel-automotive.git diff --git a/kernel/sched_cpupri.h b/kernel/sched_cpupri.h index 9fc7d38..f6d7561 100644 --- a/kernel/sched_cpupri.h +++ b/kernel/sched_cpupri.h @@ -4,7 +4,6 @@ #include #define CPUPRI_NR_PRIORITIES (MAX_RT_PRIO + 2) -#define CPUPRI_NR_PRI_WORDS BITS_TO_LONGS(CPUPRI_NR_PRIORITIES) #define CPUPRI_INVALID -1 #define CPUPRI_IDLE 0 @@ -12,14 +11,12 @@ /* values 2-101 are RT priorities 0-99 */ struct cpupri_vec { - raw_spinlock_t lock; - int count; - cpumask_var_t mask; + atomic_t count; + cpumask_var_t mask; }; struct cpupri { struct cpupri_vec pri_to_cpu[CPUPRI_NR_PRIORITIES]; - long pri_active[CPUPRI_NR_PRI_WORDS]; int cpu_to_pri[NR_CPUS]; };