summaryrefslogtreecommitdiff
path: root/drivers/net/irda/au1k_ir.c
diff options
context:
space:
mode:
authorRobert Jarzmik <robert.jarzmik@free.fr>2015-09-26 20:49:18 +0200
committerDavid S. Miller <davem@davemloft.net>2015-09-28 22:32:48 -0700
commitbe01891e4606bc6aaa2b12fbade1aca8eb467a16 (patch)
treea5d5cae394b95b1ac1782fa61d43df24f073764e /drivers/net/irda/au1k_ir.c
parent5b40f709a1b3100a1a9dbd824303c68757f2e25e (diff)
net: irda: pxaficp_ir: use sched_clock() for time management
Instead of using directly the OS timer through direct register access, use the standard sched_clock(), which will end up in OSCR reading anyway. This is a first step for direct access register removal and machine specific code removal from this driver. This commit changes the behavior, as previously the minimum turnaround time was counted in 76ns steps, while with this patch it is counted in microsecond steps. The strictly equal formula would have been : while ((sched_clock() - si->last_clk) * 76 < mtt) Signed-off-by: Robert Jarzmik <robert.jarzmik@free.fr> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/irda/au1k_ir.c')
0 files changed, 0 insertions, 0 deletions