lkml.org 
[lkml]   [2011]   [Aug]   [5]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH][GIT PULL] sched/cpupri: Remove the vec->lock
From
Date
On Fri, 2011-08-05 at 16:20 +0800, Yong Zhang wrote:
> On Tue, Aug 02, 2011 at 04:36:12PM -0400, Steven Rostedt wrote:
> > diff --git a/kernel/sched_cpupri.h b/kernel/sched_cpupri.h
> > index 9fc7d38..6b4cd17 100644
> > --- a/kernel/sched_cpupri.h
> > +++ b/kernel/sched_cpupri.h
> > @@ -12,9 +12,8 @@
> > /* 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 {
>
> So cpupri->pri_active and macro CPUPRI_NR_PRI_WORDS is not needed any more?

It doesn't appear so. Looks like they can be removed too.

Want to send a patch?

Thanks!

-- Steve




\
 
 \ /
  Last update: 2011-08-05 14:33    [from the cache]
©2003-2011 Jasper Spaans