1. 19 10月, 2010 2 次提交
  2. 12 10月, 2010 2 次提交
  3. 09 10月, 2010 1 次提交
  4. 08 10月, 2010 1 次提交
  5. 06 10月, 2010 1 次提交
    • T
      [IA64] Initialize interrupts later (from init_IRQ()) · 4de0a759
      Tony Luck 提交于
      Thomas Gleixner is cleaning up the generic irq code, and ia64 ran
      into problems because it calls register_intr() before early_irq_init()
      is called.  Move the call to acpi_boot_init() from setup_arch() to
      init_IRQ().
      
      As a bonus - moving the call later means we no longer need the
      hacks in iosapic.c to switch between the bootmem and regular
      allocator - we can just used kzalloc() for allocation.
      Signed-off-by: NTony Luck <tony.luck@intel.com>
      4de0a759
  6. 02 10月, 2010 1 次提交
  7. 28 9月, 2010 1 次提交
    • T
      [IA64] Stop using the deprecated __do_IRQ() code path · 5d4bff94
      Tony Luck 提交于
      Thomas Gleixner <tglx@linutronix.de> wrote:
      >__do_IRQ() has been deprecated after a two years migration phase in
      >commit 0e57aa11. Since then another 18 months have gone by ...
      
      Mostly trivial stuff for this. The only tricky part was realizing
      that the new handler_*_irq() paths do not use desc->chip->end(irq).
      Not a problem for the edge case as the ia64 iosapic routine for
      that was nop(). But the "level" case handled interrupt migration
      there.  Just use a slightly modified version of the "end" routine
      as "unmask" for the level triggered case.
      Signed-off-by: NTony Luck <tony.luck@intel.com>
      5d4bff94
  8. 24 9月, 2010 7 次提交
  9. 21 9月, 2010 2 次提交
  10. 16 9月, 2010 1 次提交
  11. 15 9月, 2010 3 次提交
  12. 10 9月, 2010 1 次提交
    • T
      [IA64] fix siglock · f574c843
      Tony Luck 提交于
      When ia64 converted to using ticket locks, an inline implementation
      of trylock/unlock in fsys.S was missed.  This was not noticed because
      in most circumstances it simply resulted in using the slow path because
      the siglock was apparently not available (under old spinlock rules).
      
      Problems occur when the ticket spinlock has value 0x0 (when first
      initialised, or when it wraps around). At this point the fsys.S
      code acquires the lock (changing the 0x0 to 0x1. If another process
      attempts to get the lock at this point, it will change the value from
      0x1 to 0x2 (using new ticket lock rules). Then the fsys.S code will
      free the lock using old spinlock rules by writing 0x0 to it. From
      here a variety of bad things can happen.
      Signed-off-by: NTony Luck <tony.luck@intel.com>
      f574c843
  13. 21 8月, 2010 1 次提交
  14. 19 8月, 2010 1 次提交
  15. 18 8月, 2010 1 次提交
    • D
      Make do_execve() take a const filename pointer · d7627467
      David Howells 提交于
      Make do_execve() take a const filename pointer so that kernel_execve() compiles
      correctly on ARM:
      
      arch/arm/kernel/sys_arm.c:88: warning: passing argument 1 of 'do_execve' discards qualifiers from pointer target type
      
      This also requires the argv and envp arguments to be consted twice, once for
      the pointer array and once for the strings the array points to.  This is
      because do_execve() passes a pointer to the filename (now const) to
      copy_strings_kernel().  A simpler alternative would be to cast the filename
      pointer in do_execve() when it's passed to copy_strings_kernel().
      
      do_execve() may not change any of the strings it is passed as part of the argv
      or envp lists as they are some of them in .rodata, so marking these strings as
      const should be fine.
      
      Further kernel_execve() and sys_execve() need to be changed to match.
      
      This has been test built on x86_64, frv, arm and mips.
      Signed-off-by: NDavid Howells <dhowells@redhat.com>
      Tested-by: NRalf Baechle <ralf@linux-mips.org>
      Acked-by: NRussell King <rmk+kernel@arm.linux.org.uk>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      d7627467
  16. 15 8月, 2010 2 次提交
  17. 14 8月, 2010 3 次提交
  18. 13 8月, 2010 1 次提交
    • T
      [IA64] Fix rwsem: RWSEM_WAITING_BIAS must not be unsigned. · b680f097
      Tony Luck 提交于
      Some nice improvements were made to rwsem in commit:
      
       424acaae
       rwsem: wake queued readers when writer blocks on active read lock
      
      but this change overlooked that ia64 had defined RWSEM_WAITING_BIAS
      as an unsigned value, while the new code required a signed value (as
      it is in every other architecture).
      
      This fix suggested by the original patch author: Michel Lespinasse.
      Signed-off-by: NTony Luck <tony.luck@intel.com>
      b680f097
  19. 11 8月, 2010 5 次提交
    • F
      dma-mapping: remove dma_is_consistent API · 3b9c6c11
      FUJITA Tomonori 提交于
      Architectures implement dma_is_consistent() in different ways (some
      misinterpret the definition of API in DMA-API.txt).  So it hasn't been so
      useful for drivers.  We have only one user of the API in tree.  Unlikely
      out-of-tree drivers use the API.
      
      Even if we fix dma_is_consistent() in some architectures, it doesn't look
      useful at all.  It was invented long ago for some old systems that can't
      allocate coherent memory at all.  It's better to export only APIs that are
      definitely necessary for drivers.
      
      Let's remove this API.
      Signed-off-by: NFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
      Cc: James Bottomley <James.Bottomley@HansenPartnership.com>
      Reviewed-by: NKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
      Cc: <linux-arch@vger.kernel.org>
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      3b9c6c11
    • F
      dma-mapping: unify dma_get_cache_alignment implementations · 4565f017
      FUJITA Tomonori 提交于
      dma_get_cache_alignment returns the minimum DMA alignment.  Architectures
      defines it as ARCH_DMA_MINALIGN (formally ARCH_KMALLOC_MINALIGN).  So we
      can unify dma_get_cache_alignment implementations.
      
      Note that some architectures implement dma_get_cache_alignment wrongly.
      dma_get_cache_alignment() should return the minimum DMA alignment.  So
      fully-coherent architectures should return 1.  This patch also fixes this
      issue.
      Signed-off-by: NFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
      Cc: <linux-arch@vger.kernel.org>
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      4565f017
    • M
      ia64: perfmon: add d_dname method · 7ae6bdbd
      Miklos Szeredi 提交于
      Switch ia64/perfmon to using the d_dname() instead of relying on
      __d_path() to prepend the name of the root dentry to the path.
      
      CC: Tony Luck <tony.luck@intel.com>
      CC: Fenghua Yu <fenghua.yu@intel.com>
      Signed-off-by: NMiklos Szeredi <mszeredi@suse.cz>
      Signed-off-by: NAl Viro <viro@zeniv.linux.org.uk>
      7ae6bdbd
    • H
      tty: Add EXTPROC support for LINEMODE · 26df6d13
      hyc@symas.com 提交于
      This patch is against the 2.6.34 source.
      
      Paraphrased from the 1989 BSD patch by David Borman @ cray.com:
      
           These are the changes needed for the kernel to support
           LINEMODE in the server.
      
           There is a new bit in the termios local flag word, EXTPROC.
           When this bit is set, several aspects of the terminal driver
           are disabled.  Input line editing, character echo, and mapping
           of signals are all disabled.  This allows the telnetd to turn
           off these functions when in linemode, but still keep track of
           what state the user wants the terminal to be in.
      
           New ioctl:
               TIOCSIG         Generate a signal to processes in the
                               current process group of the pty.
      
           There is a new mode for packet driver, the TIOCPKT_IOCTL bit.
           When packet mode is turned on in the pty, and the EXTPROC bit
           is set, then whenever the state of the pty is changed, the
           next read on the master side of the pty will have the TIOCPKT_IOCTL
           bit set.  This allows the process on the server side of the pty
           to know when the state of the terminal has changed; it can then
           issue the appropriate ioctl to retrieve the new state.
      
      Since the original BSD patches accompanied the source code for telnet
      I've left that reference here, but obviously the feature is useful for
      any remote terminal protocol, including ssh.
      
      The corresponding feature has existed in the BSD tty driver since 1989.
      For historical reference, a good copy of the relevant files can be found
      here:
      
      http://anonsvn.mit.edu/viewvc/krb5/trunk/src/appl/telnet/?pathrev=17741Signed-off-by: NHoward Chu <hyc@symas.com>
      Cc: Alan Cox <alan@lxorguk.ukuu.org.uk>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
      
      26df6d13
    • G
      tty: remove remaining Hayes ESP ioctls · a3c8ed69
      Greg Kroah-Hartman 提交于
      As Jeff Dike pointed out, the Hayes ESP driver was removed in commit
      f53a2ade, so these ioctl definitions
      should also be removed.  This cleans up the remaining arch-specific
      locations of this ioctl value.
      
      Thanks to Arnd for pointing these out.
      
      Cc: Jeff Dike <jdike@addtoit.com>
      Cc: Arnd Bergmann <arnd@arndb.de>
      Cc: Alan Cox <alan@linux.intel.com>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
      a3c8ed69
  20. 10 8月, 2010 2 次提交
  21. 08 8月, 2010 1 次提交