Commit 3cb3a66c authored by Atsushi Nemoto's avatar Atsushi Nemoto Committed by Ralf Baechle

MIPS: Fix __ndelay build error and add 'ull' suffix for 32-bit kernel

Signed-off-by: default avatarAtsushi Nemoto <anemo@mba.ocn.ne.jp>
Signed-off-by: default avatarRalf Baechle <ralf@linux-mips.org>
parent dbc1d911
...@@ -43,7 +43,7 @@ void __udelay(unsigned long us) ...@@ -43,7 +43,7 @@ void __udelay(unsigned long us)
{ {
unsigned int lpj = current_cpu_data.udelay_val; unsigned int lpj = current_cpu_data.udelay_val;
__delay((us * 0x000010c7 * HZ * lpj) >> 32); __delay((us * 0x000010c7ull * HZ * lpj) >> 32);
} }
EXPORT_SYMBOL(__udelay); EXPORT_SYMBOL(__udelay);
...@@ -51,6 +51,6 @@ void __ndelay(unsigned long ns) ...@@ -51,6 +51,6 @@ void __ndelay(unsigned long ns)
{ {
unsigned int lpj = current_cpu_data.udelay_val; unsigned int lpj = current_cpu_data.udelay_val;
__delay((us * 0x00000005 * HZ * lpj) >> 32); __delay((ns * 0x00000005ull * HZ * lpj) >> 32);
} }
EXPORT_SYMBOL(__ndelay); EXPORT_SYMBOL(__ndelay);
Markdown is supported
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