]> Git Repo - linux.git/commit
net: fec: reduce spin lock time in fec_ptp_adjfreq
authorFrank Li <[email protected]>
Tue, 6 Nov 2012 20:14:49 +0000 (20:14 +0000)
committerDavid S. Miller <[email protected]>
Wed, 7 Nov 2012 23:52:12 +0000 (18:52 -0500)
commit7da716aee2532399e213a14f656d304098f67a11
tree7d294e94fc51a1b7e7ab1d9f7822d50e74670f6d
parent0f2f7a40f9ae91b9e837c3cd2cacd7f46c168eb1
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: Frank Li <[email protected]>
Acked-by: Richard Cochran <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
drivers/net/ethernet/freescale/fec_ptp.c
This page took 0.052909 seconds and 4 git commands to generate.