1. 26 3月, 2006 6 次提交
    • A
      [PATCH] cirrus ep93xx watchdog driver · f52ac8fe
      Alessandro Zummo 提交于
      Add a driver for the on-chip watchdog on the cirrus ep93xx series of ARM
      CPUs.
      Signed-off-by: NLennert Buytenhek <buytenh@wantstofly.org>
      Cc: Wim Van Sebroeck <wim@iguana.be>
      Cc: Russell King <rmk@arm.linux.org.uk>
      Signed-off-by: NAlessandro Zummo <a.zummo@towertech.it>
      Signed-off-by: NAndrew Morton <akpm@osdl.org>
      Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
      f52ac8fe
    • D
      [PATCH] Optimise d_find_alias() · 214fda1f
      David Howells 提交于
      The attached patch optimises d_find_alias() to only take the spinlock if
      there's anything in the the inode's alias list.  If there isn't, it returns
      NULL immediately.
      
      With respect to the superblock sharing patch, this should reduce by one the
      number of times the dcache_lock is taken by nfs_lookup() for ordinary
      directory lookups.
      
      Only in the case where there's already a dentry for particular directory inode
      (such as might happen when another mountpoint is rooted at that dentry) will
      the lock then be taken the extra time.
      Signed-off-by: NDavid Howells <dhowells@redhat.com>
      Cc: Trond Myklebust <trond.myklebust@fys.uio.no>
      Signed-off-by: NAndrew Morton <akpm@osdl.org>
      Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
      214fda1f
    • T
      [PATCH] Validate and sanitze itimer timeval from userspace · 7d99b7d6
      Thomas Gleixner 提交于
      According to the specification the timevals must be validated and an
      errorcode -EINVAL returned in case the timevals are not in canonical form.
      This check was never done in Linux.
      
      The pre 2.6.16 code converted invalid timevals silently.  Negative timeouts
      were converted by the timeval_to_jiffies conversion to the maximum timeout.
      
      hrtimers and the ktime_t operations expect timevals in canonical form.
      Otherwise random results might happen on 32 bits machines due to the
      optimized ktime_add/sub operations.  Negative timeouts are treated as
      already expired.  This might break applications which work on pre 2.6.16.
      
      To prevent random behaviour and API breakage the timevals are checked and
      invalid timevals sanitized in a simliar way as the pre 2.6.16 code did.
      
      Invalid timevals are reported with a per boot limited number of kernel
      messages so applications which use this misfeature can be corrected.
      
      After a grace period of one year the sanitizing should be replaced by a
      correct validation check.  This is also documented in
      Documentation/feature-removal-schedule.txt
      
      The validation and sanitizing is done inside do_setitimer so all callers
      (sys_setitimer, compat_sys_setitimer, osf_setitimer) are catched.
      Signed-off-by: NThomas Gleixner <tglx@linutronix.de>
      Signed-off-by: NAndrew Morton <akpm@osdl.org>
      Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
      7d99b7d6
    • T
      [PATCH] sys_alarm() unsigned signed conversion fixup · c08b8a49
      Thomas Gleixner 提交于
      alarm() calls the kernel with an unsigend int timeout in seconds.  The
      value is stored in the tv_sec field of a struct timeval to setup the
      itimer.  The tv_sec field of struct timeval is of type long, which causes
      the tv_sec value to be negative on 32 bit machines if seconds > INT_MAX.
      
      Before the hrtimer merge (pre 2.6.16) such a negative value was converted
      to the maximum jiffies timeout by the timeval_to_jiffies conversion.  It's
      not clear whether this was intended or just happened to be done by the
      timeval_to_jiffies code.
      
      hrtimers expect a timeval in canonical form and treat a negative timeout as
      already expired.  This breaks the legitimate usage of alarm() with a
      timeout value > INT_MAX seconds.
      
      For 32 bit machines it is therefor necessary to limit the internal seconds
      value to avoid API breakage.  Instead of doing this in all implementations
      of sys_alarm the duplicated sys_alarm code is moved into a common function
      in itimer.c
      Signed-off-by: NThomas Gleixner <tglx@linutronix.de>
      Signed-off-by: NAndrew Morton <akpm@osdl.org>
      Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
      c08b8a49
    • A
      [PATCH] timer irq driven soft watchdog fix · 185ae6d7
      Andrew Morton 提交于
      I seem to have lost this hunk in yesterday's patch.  It brings the
      coming-online CPU's softlockup timer up to date so we don't get false-positive
      tripups during CPU hot-add.
      Signed-off-by: NAndrew Morton <akpm@osdl.org>
      Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
      185ae6d7
    • A
      [PATCH] fix DMI onboard device discovery · bc83455b
      Andrey Panin 提交于
      Attached patch fixes invalid pointer arithmetic in DMI code to make onboard
      device discovery working again.
      
      akpm: bug has been present since dmi_find_device() was added in 2.6.14.
      Affects ipmi only (I think) - the symptoms weren't described.
      
      akpm: changed to use pointer arithmetic rather than open-coded sizeof.
      Signed-off-by: NAndrey Panin <pazke@donpac.ru>
      Cc: Corey Minyard <minyard@acm.org>
      Cc: <stable@kernel.org>
      Signed-off-by: NAndrew Morton <akpm@osdl.org>
      Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
      bc83455b
  2. 25 3月, 2006 3 次提交
    • H
      [PATCH] net: ne2k.c won't compile if pci_clone_list is const · b2fd16b4
      Horms 提交于
      net: ne2k.c won't compile if pci_clone_list is const
      
      f71e1309 which (amongst other things)
      made pci_clone_list in ne2k-pci.c const causes the following compile error.
      This patch reverses that portion of that changeset
      
      drivers/net/ne2k-pci.c:123: error: pci_clone_list causes a section type
      conflict
      
      ~/ gcc --version
      gcc (GCC) 4.0.3 (Debian 4.0.3-1)
      ~/ dpkg gcc-4.0 | grep Version
      Version: 4.0.3-1
      
      Signed-Off-By: Horms <horms@verge.net.au
      
       ne2k-pci.c |    2 +-
       1 file changed, 1 insertion(+), 1 deletion(-)
      
      cee0890cc97247b6a9decd94f5dc0719ac8f0b1b
      Signed-off-by: NJeff Garzik <jeff@garzik.org>
      b2fd16b4
    • A
      [PATCH] AT91RM9200 Ethernet driver · d4b7780e
      Andrew Victor 提交于
      This patch adds support for the Ethernet controller integrated in the
      Atmel AT91RM9200 SoC processor.
      
      Changes since the previous submission (01/02/2006) are:
        - Make use of the clk.h clock infrastructure.
        - The multicast hash function is not crc32. [Patch by Pedro Perez]
      Signed-off-by: NAndrew Victor <andrew@sanpeople.com>
      Signed-off-by: NJeff Garzik <jeff@garzik.org>
      d4b7780e
    • L
      Merge branch 'upstream-linus' of master.kernel.org:/pub/scm/linux/kernel/git/jgarzik/libata-dev · e93252fa
      Linus Torvalds 提交于
      * 'upstream-linus' of master.kernel.org:/pub/scm/linux/kernel/git/jgarzik/libata-dev:
        [PATCH] libata: Remove dependence on host_set->dev for SAS
        [PATCH] libata: ata_scsi_ioctl cleanup
        [PATCH] libata: ata_scsi_queuecmd cleanup
        [libata] export ata_dev_pair; trim trailing whitespace
        [PATCH] libata: add ata_dev_pair helper
        [PATCH] Make libata not powerdown drivers on PM_EVENT_FREEZE.
        [PATCH] libata: make ata_set_mode() responsible for failure handling
        [PATCH] libata: use ata_dev_disable() in ata_bus_probe()
        [PATCH] libata: implement ata_dev_disable()
        [PATCH] libata: check if port is disabled after internal command
        [PATCH] libata: make per-dev transfer mode limits per-dev
        [PATCH] libata: add per-dev pio/mwdma/udma_mask
        [PATCH] libata: implement ata_unpack_xfermask()
        [libata] Move some bmdma-specific code to libata-bmdma.c
        [libata sata_uli] kill scr_addr abuse
        [libata sata_nv] eliminate duplicate codepaths with iomap
        [libata sata_nv] cleanups: convert #defines to enums; remove in-file history
        [libata sata_sil24] cleanups: use pci_iomap(), kzalloc()
      e93252fa
  3. 24 3月, 2006 31 次提交