1. 07 Dec, 2006 1 commit
  2. 05 Dec, 2006 1 commit
    • Matthew Wilcox's avatar
      [PATCH] Centralise definitions of sector_t and blkcnt_t · e6243863
      Matthew Wilcox authored
      CONFIG_LBD and CONFIG_LSF are spread into asm/types.h for no particularly
      good reason.
      Centralising the definition in linux/types.h means that arch maintainers
      don't need to bother adding it, as well as fixing the problem with
      x86-64 users being asked to make a decision that has absolutely no
      The H8/300 porters seem particularly confused since I'm not aware of any
      microcontrollers that need to support 2TB filesystems.
      Signed-off-by: default avatarMatthew Wilcox <matthew@wil.cx>
      Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
  3. 04 Dec, 2006 11 commits
  4. 03 Dec, 2006 1 commit
  5. 01 Dec, 2006 1 commit
  6. 18 Oct, 2006 2 commits
    • Martin Schwidefsky's avatar
      [S390] Fix pte type checking. · 83377484
      Martin Schwidefsky authored
      handle_pte_fault uses pte_present, pte_none and pte_file to find out
      the type of a pte. That is done without holding the page table lock.
      This clashes with the way how ptep_clear_flush removes active page
      table entries from the system. First the ipte instruction is used
      to invalidate the pte and remove all plt entries for the page. The
      ipte sets the hardware invalid bit without changing any other bit.
      After the ipte finished the pte is cleared. A concurrent fault can
      observe the the previously valid pte with the invalid bit set. With
      the current encoding of the different pte types an invalidated
      read-only pte can be misinterpreted as a swap-pte.
      Signed-off-by: default avatarMartin Schwidefsky <schwidefsky@de.ibm.com>
    • Heiko Carstens's avatar
  7. 11 Oct, 2006 2 commits
  8. 06 Oct, 2006 2 commits
  9. 04 Oct, 2006 3 commits
  10. 03 Oct, 2006 1 commit
  11. 02 Oct, 2006 2 commits
    • Arnd Bergmann's avatar
      [PATCH] remove remaining errno and __KERNEL_SYSCALLS__ references · 135ab6ec
      Arnd Bergmann authored
      The last in-kernel user of errno is gone, so we should remove the definition
      and everything referring to it.  This also removes the now-unused lib/execve.c
      file that was introduced earlier.
      Also remove every trace of __KERNEL_SYSCALLS__ that still remained in the
      Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
      Cc: Andi Kleen <ak@muc.de>
      Cc: Paul Mackerras <paulus@samba.org>
      Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
      Cc: Richard Henderson <rth@twiddle.net>
      Cc: Ivan Kokshaysky <ink@jurassic.park.msu.ru>
      Cc: Russell King <rmk@arm.linux.org.uk>
      Cc: Ian Molton <spyro@f2s.com>
      Cc: Mikael Starvik <starvik@axis.com>
      Cc: David Howells <dhowells@redhat.com>
      Cc: Yoshinori Sato <ysato@users.sourceforge.jp>
      Cc: Hirokazu Takata <takata.hirokazu@renesas.com>
      Cc: Ralf Baechle <ralf@linux-mips.org>
      Cc: Kyle McMartin <kyle@mcmartin.ca>
      Cc: Heiko Carstens <heiko.carstens@de.ibm.com>
      Cc: Martin Schwidefsky <schwidefsky@de.ibm.com>
      Cc: Paul Mundt <lethal@linux-sh.org>
      Cc: Kazumoto Kojima <kkojima@rr.iij4u.or.jp>
      Cc: Richard Curnow <rc@rc0.org.uk>
      Cc: William Lee Irwin III <wli@holomorphy.com>
      Cc: "David S. Miller" <davem@davemloft.net>
      Cc: Jeff Dike <jdike@addtoit.com>
      Cc: Paolo 'Blaisorblade' Giarrusso <blaisorblade@yahoo.it>
      Cc: Miles Bader <uclinux-v850@lsi.nec.co.jp>
      Cc: Chris Zankel <chris@zankel.net>
      Cc: "Luck, Tony" <tony.luck@intel.com>
      Cc: Geert Uytterhoeven <geert@linux-m68k.org>
      Cc: Roman Zippel <zippel@linux-m68k.org>
      Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
      Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
    • Ananth N Mavinakayanahalli's avatar
      [PATCH] Add regs_return_value() helper · b3f827cb
      Ananth N Mavinakayanahalli authored
      Add the regs_return_value() macro to extract the return value in an
      architecture agnostic manner, given the pt_regs.
      Other architecture maintainers may want to add similar helpers.
      Signed-off-by: default avatarAnanth N Mavinakayanahalli <ananth@in.ibm.com>
      Signed-off-by: default avatarAnil S Keshavamurthy <anil.s.keshavamurthy@intel.com>
      Signed-off-by: default avatarMartin Schwidefsky <schwidefsky@de.ibm.com>
      Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
      Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
  12. 01 Oct, 2006 2 commits
    • Martin Schwidefsky's avatar
      [PATCH] Directed yield: direct yield of spinlocks for s390. · 3c1fcfe2
      Martin Schwidefsky authored
      Use the new diagnose 0x9c in the spinlock implementation for s390.  It
      yields the remaining timeslice of the virtual cpu that tries to acquire a
      lock to the virtual cpu that is the current holder of the lock.
      Signed-off-by: default avatarMartin Schwidefsky <schwidefsky@de.ibm.com>
      Cc: Ingo Molnar <mingo@elte.hu>
      Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
      Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
    • Martin Schwidefsky's avatar
      [PATCH] Directed yield: cpu_relax variants for spinlocks and rw-locks · ef6edc97
      Martin Schwidefsky authored
      On systems running with virtual cpus there is optimization potential in
      regard to spinlocks and rw-locks.  If the virtual cpu that has taken a lock
      is known to a cpu that wants to acquire the same lock it is beneficial to
      yield the timeslice of the virtual cpu in favour of the cpu that has the
      lock (directed yield).
      With CONFIG_PREEMPT="n" this can be implemented by the architecture without
      common code changes.  Powerpc already does this.
      With CONFIG_PREEMPT="y" the lock loops are coded with _raw_spin_trylock,
      _raw_read_trylock and _raw_write_trylock in kernel/spinlock.c.  If the lock
      could not be taken cpu_relax is called.  A directed yield is not possible
      because cpu_relax doesn't know anything about the lock.  To be able to
      yield the lock in favour of the current lock holder variants of cpu_relax
      for spinlocks and rw-locks are needed.  The new _raw_spin_relax,
      _raw_read_relax and _raw_write_relax primitives differ from cpu_relax
      insofar that they have an argument: a pointer to the lock structure.
      Signed-off-by: default avatarMartin Schwidefsky <schwidefsky@de.ibm.com>
      Cc: Ingo Molnar <mingo@elte.hu>
      Cc: Paul Mackerras <paulus@samba.org>
      Cc: Haavard Skinnemoen <hskinnemoen@atmel.com>
      Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
      Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
  13. 29 Sep, 2006 2 commits
  14. 28 Sep, 2006 2 commits
    • Martin Schwidefsky's avatar
      [S390] Inline assembly cleanup. · 94c12cc7
      Martin Schwidefsky authored
      Major cleanup of all s390 inline assemblies. They now have a common
      coding style. Quite a few have been shortened, mainly by using register
      asm variables. Use of the EX_TABLE macro helps  as well. The atomic ops,
      bit ops and locking inlines new use the Q-constraint if a newer gcc
      is used.  That results in slightly better code.
      Thanks to Christian Borntraeger for proof reading the changes.
      Signed-off-by: default avatarMartin Schwidefsky <schwidefsky@de.ibm.com>
    • Martin Schwidefsky's avatar
      [S390] __div64_32 for 31 bit. · d9f7a745
      Martin Schwidefsky authored
      The clocksource infrastructure introduced with commit
       broke 31 bit s390.
      The reason is that the do_div() primitive for 31 bit always
      had a restriction: it could only divide an unsigned 64 bit
      integer by an unsigned 31 bit integer. The clocksource code
      now uses do_div() with a base value that has the most
      significant bit set. The result is that clock->cycle_interval
      has a funny value which causes the linux time to jump around
      like mad.
      The solution is "obvious": implement a proper __div64_32
      function for 31 bit s390.
      Signed-off-by: default avatarMartin Schwidefsky <schwidefsky@de.ibm.com>
  15. 27 Sep, 2006 1 commit
  16. 26 Sep, 2006 3 commits
  17. 24 Sep, 2006 1 commit
  18. 20 Sep, 2006 2 commits