Skip to content
Commit 7da716ae authored by Frank Li's avatar Frank Li Committed by David S. Miller
Browse files

net: fec: reduce spin lock time in fec_ptp_adjfreq



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: default avatarFrank Li <Frank.Li@freescale.com>
Acked-by: default avatarRichard Cochran <richardcochran@gmail.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 0f2f7a40
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment