Re: [PATCH RT 3/9][RFC] [PATCH 3/9] lglock/rt: Use non-rt for_each_cpu() in -rt code
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
- To: "Srivatsa S. Bhat" <srivatsa.bhat@xxxxxxxxxxxxxxxxxx>
- Subject: Re: [PATCH RT 3/9][RFC] [PATCH 3/9] lglock/rt: Use non-rt for_each_cpu() in -rt code
- From: Steven Rostedt <rostedt@xxxxxxxxxxx>
- Date: Fri, 02 Mar 2012 09:20:48 -0500
- Cc: linux-kernel@xxxxxxxxxxxxxxx, linux-rt-users <linux-rt-users@xxxxxxxxxxxxxxx>, Thomas Gleixner <tglx@xxxxxxxxxxxxx>, Carsten Emde <C.Emde@xxxxxxxxx>, John Kacur <jkacur@xxxxxxxxxx>, Peter Zijlstra <peterz@xxxxxxxxxxxxx>, Clark Williams <clark.williams@xxxxxxxxx>, "mingo@xxxxxxx" <mingo@xxxxxxx>, Andi Kleen <ak@xxxxxxxxxxxxxxx>, "akpm@xxxxxxxxxxxxxxxxxxxx" <akpm@xxxxxxxxxxxxxxxxxxxx>, "rusty@xxxxxxxxxxxxxxx" <rusty@xxxxxxxxxxxxxxx>
- In-reply-to: <4F5075D5.9090201@linux.vnet.ibm.com>
- References: <20120301185527.064629423@goodmis.org> <20120301190345.374756214@goodmis.org> <4F5075D5.9090201@linux.vnet.ibm.com>
On Fri, 2012-03-02 at 12:55 +0530, Srivatsa S. Bhat wrote:
> On 03/02/2012 12:25 AM, Steven Rostedt wrote:
> } \
> > + register_hotcpu_notifier(&name##_lg_cpu_notifier); \
> > + get_online_cpus(); \
> > + for_each_online_cpu(i) \
> > + cpu_set(i, name##_cpus); \
>
>
> This can be further improved. We don't really need this loop. We can replace
> it with:
>
> cpumask_copy(&name##_cpus, cpu_online_mask);
>
> (as pointed out by Ingo. See: https://lkml.org/lkml/2012/2/29/93 and
> https://lkml.org/lkml/2012/2/29/153).
>
> I will try sending a patch for this to non-RT after the numerous patches
> currently flying around this code (in non-RT) settle down..
>
>
Yeah, I thought that was funny too, but I wanted RT to be close to
mainline. My thoughts were to fix the broken hotplug code at the time
and I wasn't thinking too much on improving mainline ;-)
-- Steve
--
To unsubscribe from this list: send the line "unsubscribe linux-rt-users" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
[RT Stable]
[Kernel Newbies]
[Share Photos]
[IDE]
[Security]
[Git]
[Netfilter]
[Bugtraq]
[Photo]
[Yosemite]
[Yosemite News]
[MIPS Linux]
[ARM Linux]
[Linux Security]
[Linux RAID]
[Linux ATA RAID]
[Samba]
[Video 4 Linux]
[Device Mapper]
[Linux Resources]