[PATCH] ARM: update show_interrupts for online cpu's only

Shilimkar, Santosh santosh.shilimkar at ti.com
Sat Jul 31 10:48:05 EDT 2010


> -----Original Message-----
> From: Russell King - ARM Linux [mailto:linux at arm.linux.org.uk]
> Sent: Saturday, July 31, 2010 8:06 PM
> To: Shilimkar, Santosh
> Cc: linux-arm-kernel at lists.infradead.org
> Subject: Re: [PATCH] ARM: update show_interrupts for online cpu's only
> 
> On Sat, Jul 31, 2010 at 07:38:53PM +0530, Santosh Shilimkar wrote:
> > Even after CPUx is logically offline, it's interrupt are displayed
> > in proc entry
> >
> > This patch fixes the same by use of 'for_each_online_cpu' instead
> > of 'for_each_present_cpu' in 'show_interrupts' function
> 
> What's the synchronisation mechanism between CPUs being brought on or
> offline and this file being read?
>
Isn't that taken care by "cpu_online_mask" mask ?
 
> I believe we have a more dynamic approach to CPU hotplug (using it for
> dynamic power saving) than x86, so I believe hotplug events can happen
> more often on ARM.
Most likely yes.



More information about the linux-arm-kernel mailing list