1. 10 3月, 2007 2 次提交
    • B
      [POWERPC] Fix spu SLB invalidations · 94b2a439
      Benjamin Herrenschmidt 提交于
      The SPU code doesn't properly invalidate SPUs SLBs when necessary,
      for example when changing a segment size from the hugetlbfs code. In
      addition, it saves and restores the SLB content on context switches
      which makes it harder to properly handle those invalidations.
      
      This patch removes the saving & restoring for now, something more
      efficient might be found later on. It also adds a spu_flush_all_slbs(mm)
      that can be used by the core mm code to flush the SLBs of all SPEs that
      are running a given mm at the time of the flush.
      
      In order to do that, it adds a spinlock to the list of all SPEs and move
      some bits & pieces from spufs to spu_base.c
      Signed-off-by: NBenjamin Herrenschmidt <benh@kernel.crashing.org>
      94b2a439
    • R
      [MIPS] Sibyte: Fix ZBbus profiler · bb9b813b
      Ralf Baechle 提交于
       o Fix build error.
       o Handle error returns.
       o Deal with signals received while sleeping.
       o Don't allow to be selected when we're not building the directory with
         the driver anyway.
       o Coding style cleanups.
      Signed-off-by: NRalf Baechle <ralf@linux-mips.org>
      bb9b813b
  2. 09 3月, 2007 7 次提交
  3. 08 3月, 2007 4 次提交
    • D
      [PATCH] Add epoll compat_ code to fs/compat.c · f6dfb4fd
      Davide Libenzi 提交于
      IA64 and ARM-OABI are currently using their own version of epoll compat_
      code.
      
      An architecture needs epoll_event translation if alignof(u64) in 32 bit
      mode is different from alignof(u64) in 64 bit mode.  If an architecture
      needs epoll_event translation, it must define struct compat_epoll_event in
      asm/compat.h and set CONFIG_HAVE_COMPAT_EPOLL_EVENT and use
      compat_sys_epoll_ctl and compat_sys_epoll_wait.
      
      All 64 bit architecture should use compat_sys_epoll_pwait.
      
      [sfr: restructure and move to fs/compat.c, remove MIPS version
      of compat_sys_epoll_pwait, use __put_user_unaligned]
      Signed-off-by: NStephen Rothwell <sfr@canb.auug.org.au>
      Cc: David Woodhouse <dwmw2@infradead.org>
      Cc: Russell King <rmk@arm.linux.org.uk>
      Cc: "Luck, Tony" <tony.luck@intel.com>
      Cc: "David S. Miller" <davem@davemloft.net>
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      f6dfb4fd
    • V
      [MTD] [NAND] make oobavail public · 1f92267c
      Vitaly Wool 提交于
      During the MTD rework the oobavail parameter of mtd_info structure has become
      private. This is not quite correct in terms of integrity and logic. If we have
      means to write to OOB area, then we'd like to know upfront how many bytes out
      of OOB are spare per page to be able to adapt to specific cases.
      The patch inlined adds the public oobavail parameter.
      Signed-off-by: NVitaly Wool <vwool@ru.mvista.com>
      Signed-off-by: NDavid Woodhouse <dwmw2@infradead.org>
      1f92267c
    • R
      [MIPS] ISA: Fix typo · 01239051
      Ralf Baechle 提交于
      Lost CONFIG_ prefix discovered by Robert P. J. Day <rpjday@mindspring.com>.
      Signed-off-by: NRalf Baechle <ralf@linux-mips.org>
      01239051
    • E
      [IPSEC]: xfrm_policy delete security check misplaced · ef41aaa0
      Eric Paris 提交于
      The security hooks to check permissions to remove an xfrm_policy were
      actually done after the policy was removed.  Since the unlinking and
      deletion are done in xfrm_policy_by* functions this moves the hooks
      inside those 2 functions.  There we have all the information needed to
      do the security check and it can be done before the deletion.  Since
      auditing requires the result of that security check err has to be passed
      back and forth from the xfrm_policy_by* functions.
      
      This patch also fixes a bug where a deletion that failed the security
      check could cause improper accounting on the xfrm_policy
      (xfrm_get_policy didn't have a put on the exit path for the hold taken
      by xfrm_policy_by*)
      
      It also fixes the return code when no policy is found in
      xfrm_add_pol_expire.  In old code (at least back in the 2.6.18 days) err
      wasn't used before the return when no policy is found and so the
      initialization would cause err to be ENOENT.  But since err has since
      been used above when we don't get a policy back from the xfrm_policy_by*
      function we would always return 0 instead of the intended ENOENT.  Also
      fixed some white space damage in the same area.
      Signed-off-by: NEric Paris <eparis@redhat.com>
      Acked-by: NVenkat Yekkirala <vyekkirala@trustedcs.com>
      Acked-by: NJames Morris <jmorris@namei.org>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      ef41aaa0
  4. 07 3月, 2007 22 次提交
  5. 06 3月, 2007 5 次提交
    • J
      [ALSA] version 1.0.14rc3 · 6185af1f
      Jaroslav Kysela 提交于
      Signed-off-by: NJaroslav Kysela <perex@suse.cz>
      6185af1f
    • P
      mmc: require explicit support for high-speed · cd9277c0
      Pierre Ossman 提交于
      The new high-speed timings are similar to each other and the old
      system, but not identical. And although things "just work" most of
      the time, sometimes it does not. So we need to start marking which
      hosts are known to fully comply with the new timings.
      Signed-off-by: NPierre Ossman <drzeus@drzeus.cx>
      cd9277c0
    • P
      ncpfs: make sure server connection survives a kill · c5f93cf1
      Pierre Ossman 提交于
      Use internal buffers instead of the ones supplied by the caller
      so that a caller can be interrupted without having to abort the
      entire ncp connection.
      Signed-off-by: NPierre Ossman <ossman@cendio.se>
      Acked-by: NPetr Vandrovec <petr@vandrovec.name>
      c5f93cf1
    • D
      mv643xx_eth: Place explicit port number in mv643xx_eth_platform_data · 84dd619e
      Dale Farnsworth 提交于
      We were using the platform_device.id field to identify which ethernet
      port is used for mv643xx_eth device.  This is not generally correct.
      It will be incorrect, for example, if a hardware platform uses a single
      port but not the first port.  Here, we add an explicit port_number field
      to struct mv643xx_eth_platform_data.
      
      This makes the mv643xx_eth_platform_data structure required, but that
      isn't an issue since all users currently provide it already.
      Signed-off-by: NDale Farnsworth <dale@farnsworth.org>
      Signed-off-by: NJeff Garzik <jeff@garzik.org>
      84dd619e
    • J
      bonding: Improve IGMP join processing · a816c7c7
      Jay Vosburgh 提交于
      	In active-backup mode, the current bonding code duplicates IGMP
      traffic to all slaves, so that switches are up to date in case of a
      failover from an active to a backup interface.  If bonding then fails
      back to the original active interface, it is likely that the "active
      slave" switch's IGMP forwarding for the port will be out of date until
      some event occurs to refresh the switch (e.g., a membership query).
      
      	This patch alters the behavior of bonding to no longer flood
      IGMP to all ports, and to issue IGMP JOINs to the newly active port at
      the time of a failover.  This insures that switches are kept up to date
      for all cases.
      
      	"GOELLESCH Niels" <niels.goellesch@eurocontrol.int> originally
      reported this problem, and included a patch.  His original patch was
      modified by Jay Vosburgh to additionally remove the existing IGMP flood
      behavior, use RCU, streamline code paths, fix trailing white space, and
      adjust for style.
      Signed-off-by: NJay Vosburgh <fubar@us.ibm.com>
      Signed-off-by: NJeff Garzik <jeff@garzik.org>
      a816c7c7