[PATCH 03/14] ARM: suspend: extract common code from MULTI_CPU/!MULTI_CPU paths

Russell King - ARM Linux linux at arm.linux.org.uk
Mon Jun 13 16:01:45 EDT 2011


On Mon, Jun 13, 2011 at 03:29:02PM -0400, Nicolas Pitre wrote:
> On Mon, 13 Jun 2011, Russell King - ARM Linux wrote:
> 
> > Very little code is different between these two paths now, so extract
> > the common code.
> 
> What about simply always using the MULTI_CPU path unconditionally here?  
> The struct processor pointer could be made available in all cases, and 
> non critical paths could choose to always use it to simplify the code.

For the ifdef sections I don't think its worth it.



More information about the linux-arm-kernel mailing list