mirror of
https://git.codelinaro.org/clo/qsdk/oss/boot/u-boot-2016.git
synced 2025-12-10 07:44:53 +01:00
Merge "qca: ipq: fix to correct wrong delay obtained from udelay function"
This commit is contained in:
commit
dec577be25
1 changed files with 1 additions and 1 deletions
|
|
@ -153,7 +153,7 @@ void __udelay(unsigned long usec)
|
|||
if (usec == 0)
|
||||
return;
|
||||
|
||||
val = (usec * GPT_FREQ_KHZ) / 1000;
|
||||
val = ((unsigned long long)usec * GPT_FREQ_KHZ) / 1000;
|
||||
if (val == 0 )
|
||||
val = 1; /* Wait for atleast 1 tick */
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue