Skip to content

Commit

Permalink
lkl: fix __const_udelay
Browse files Browse the repository at this point in the history
Since we can't implement delays using xloops in an architecture-independant way,
we have to revert the calculation done in include/asm-generic/delay.h

The previous attempt divided by 0x5, but this value is for nsecs and not for usecs.

Signed-off-by: Michael Zimmermann <[email protected]>
  • Loading branch information
M1cha committed Jul 10, 2017
1 parent 0d91d10 commit 1647315
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/lkl/kernel/time.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ void __udelay(unsigned long usecs)

void __const_udelay(unsigned long xloops)
{
__udelay(xloops / 5);
__udelay(xloops / 0x10c7ul);
}

void calibrate_delay(void)
Expand Down

0 comments on commit 1647315

Please sign in to comment.