Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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

Signed-off-by: Atsushi Nemoto <anemo@mba.ocn.ne.jp>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>

authored by

Atsushi Nemoto and committed by
Ralf Baechle
3cb3a66c dbc1d911

+2 -2
+2 -2
arch/mips/lib/delay.c
··· 43 43 { 44 44 unsigned int lpj = current_cpu_data.udelay_val; 45 45 46 - __delay((us * 0x000010c7 * HZ * lpj) >> 32); 46 + __delay((us * 0x000010c7ull * HZ * lpj) >> 32); 47 47 } 48 48 EXPORT_SYMBOL(__udelay); 49 49 ··· 51 51 { 52 52 unsigned int lpj = current_cpu_data.udelay_val; 53 53 54 - __delay((us * 0x00000005 * HZ * lpj) >> 32); 54 + __delay((ns * 0x00000005ull * HZ * lpj) >> 32); 55 55 } 56 56 EXPORT_SYMBOL(__ndelay);