mips-delay-fix.patch 793 B

123456789101112131415161718192021222324252627
  1. From: Atsushi Nemoto <nemoto@toshiba-tops.co.jp>
  2. Subject: [PATCH] fix __ndelay build error and add 'ull' suffix for 32-bit kernel
  3. Signed-off-by: Atsushi Nemoto <anemo@mba.ocn.ne.jp>
  4. ---
  5. arch/mips/lib/delay.c | 4 ++--
  6. 1 files changed, 2 insertions(+), 2 deletions(-)
  7. --- a/arch/mips/lib/delay.c
  8. +++ b/arch/mips/lib/delay.c
  9. @@ -43,7 +43,7 @@ void __udelay(unsigned long us)
  10. {
  11. unsigned int lpj = current_cpu_data.udelay_val;
  12. - __delay((us * 0x000010c7 * HZ * lpj) >> 32);
  13. + __delay((us * 0x000010c7ull * HZ * lpj) >> 32);
  14. }
  15. EXPORT_SYMBOL(__udelay);
  16. @@ -51,6 +51,6 @@ void __ndelay(unsigned long ns)
  17. {
  18. unsigned int lpj = current_cpu_data.udelay_val;
  19. - __delay((us * 0x00000005 * HZ * lpj) >> 32);
  20. + __delay((ns * 0x00000005ull * HZ * lpj) >> 32);
  21. }
  22. EXPORT_SYMBOL(__ndelay);