1. 23 Jun, 2009 3 commits
    • Arnd Bergmann's avatar
      lib/checksum.c: make do_csum optional · 217a8c7b
      Arnd Bergmann authored
      Mike Frysinger suggested that do_csum should be optional
      so that an architecture can use the generic checksum code
      but still provide an optimized fast-path for the most
      critical function.
      
      This can mean an implementation using inline assembly,
      or in case of Alpha one using 64-bit arithmetic in C.
      
      Cc: Mike Frysinger <vapier@gentoo.org>
      Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
      217a8c7b
    • Arnd Bergmann's avatar
      lib/checksum.c: use 32-bit arithmetic consistently · 5cb59758
      Arnd Bergmann authored
      The use of 'unsigned long' variables in the 32-bit part of do_csum()
      is confusing at best, and potentially broken for long input on 64-bit
      machines.
      
      This changes the code to use 'unsigned int' instead, which makes
      the code behave in the same (correct) way on both 32 and 64 bit
      machines.
      Reported-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
      5cb59758
    • Paul Mundt's avatar
      asm-generic: add dummy pgprot_noncached() · 0634a632
      Paul Mundt authored
      Most architectures now provide a pgprot_noncached(), the
      remaining ones can simply use an dummy default implementation,
      except for cris and xtensa, which should override the
      default appropriately.
      Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
      Cc: Jesper Nilsson <jesper.nilsson@axis.com>
      Cc: Chris Zankel <chris@zankel.net>
      Cc: Magnus Damm <magnus.damm@gmail.com>
      0634a632
  2. 19 Jun, 2009 6 commits
  3. 18 Jun, 2009 31 commits