[PATCH 1/2] powerpc: Pull out cpu_core_mask updates into a separate function
Stephen Rothwell
sfr at canb.auug.org.au
Mon Aug 12 14:41:00 EST 2013
Hi Paul,
On Sat, 10 Aug 2013 13:45:30 +1000 Paul Mackerras <paulus at samba.org> wrote:
>
> This factors out the details of updating cpu_core_mask into a separate
> function, to make it easier to change how the mask is calculated later.
> This makes no functional change.
>
> Signed-off-by: Paul Mackerras <paulus at samba.org>
> ---
> arch/powerpc/kernel/smp.c | 56 +++++++++++++++++++++++------------------------
> 1 file changed, 28 insertions(+), 28 deletions(-)
>
> diff --git a/arch/powerpc/kernel/smp.c b/arch/powerpc/kernel/smp.c
> index 38b0ba6..663cefd 100644
> --- a/arch/powerpc/kernel/smp.c
> +++ b/arch/powerpc/kernel/smp.c
> @@ -609,11 +609,36 @@ static struct device_node *cpu_to_l2cache(int cpu)
> return cache;
> }
>
> +static void traverse_core_siblings(int cpu, int add)
This "add" parameter is only used as a boolean, so should be declared
that way.
--
Cheers,
Stephen Rothwell sfr at canb.auug.org.au
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: not available
URL: <http://lists.ozlabs.org/pipermail/linuxppc-dev/attachments/20130812/f4c611b5/attachment.sig>
More information about the Linuxppc-dev
mailing list