[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20121107083307.GB2267@netboy.at.omicron.at>
Date: Wed, 7 Nov 2012 09:33:07 +0100
From: Richard Cochran <richardcochran@...il.com>
To: Frank Li <Frank.Li@...escale.com>
Cc: lznuaa@...il.com, shawn.guo@...aro.org,
linux-arm-kernel@...ts.infradead.or, netdev@...r.kernel.org,
davem@...emloft.net, bhutchings@...arflare.com
Subject: Re: [PATCH 2/2] net: fec: reduce spin lock time in fec_ptp_adjfreq
On Wed, Nov 07, 2012 at 02:14:49PM +0800, Frank Li wrote:
> move below calculate out of spin lock section
> diff = fep->cc.mult;
> diff *= ppb;
> diff = div_u64(diff, 1000000000ULL);
>
> diff is local variable and not neccesary in spin lock
>
> Signed-off-by: Frank Li <Frank.Li@...escale.com>
Acked-by: Richard Cochran <richardcochran@...il.com>
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists