[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20110429003328.3D7B.A69D9226@jp.fujitsu.com>
Date: Fri, 29 Apr 2011 00:31:48 +0900 (JST)
From: KOSAKI Motohiro <kosaki.motohiro@...fujitsu.com>
To: Thiago Farina <tfransosi@...il.com>
Cc: kosaki.motohiro@...fujitsu.com,
LKML <linux-kernel@...r.kernel.org>,
"David S. Miller" <davem@...emloft.net>, sparclinux@...r.kernel.org
Subject: Re: [PATCH] sparc: convert old cpumask API into new one
> On Thu, Apr 28, 2011 at 12:14 PM, KOSAKI Motohiro
> <kosaki.motohiro@...fujitsu.com> wrote:
> > Adapt new API. Almost change is trivial, most important change are to
> > remove following like =operator.
> >
> > cpumask_t cpu_mask = *mm_cpumask(mm);
>
> Could you note that you are changing this to:
>
> cpumask_t cpu_mask;
> cpumask_copy(&cpu_mask, mm_cpumask(mm));
>
> > cpus_allowed = current->cpus_allowed;
>
> And this to:
>
> cpumask_copy(&cpus_allowed, tsk_cpus_allowed(current));
The code explain it clearly?
> > diff --git a/arch/sparc/kernel/of_device_64.c b/arch/sparc/kernel/of_device_64.c
> > index 5c14968..3bb2eac 100644
> > --- a/arch/sparc/kernel/of_device_64.c
> > +++ b/arch/sparc/kernel/of_device_64.c
> > @@ -622,8 +622,9 @@ static unsigned int __init build_one_device_irq(struct platform_device *op,
> > out:
> > nid = of_node_to_nid(dp);
> > if (nid != -1) {
> > - cpumask_t numa_mask = *cpumask_of_node(nid);
> > + cpumask_t numa_mask;
> >
> please, could you remove the extra blank line?
>
> > + cpumask_copy(&numa_mask, cpumask_of_node(nid));
> > irq_set_affinity(irq, &numa_mask);
Why? one blank line between declaration and statement is standard coding style.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists