1. 16 6月, 2011 3 次提交
  2. 14 6月, 2011 2 次提交
    • M
      sh, exec: remove redundant set_fs(USER_DS) · 201fbceb
      Mathias Krause 提交于
      The address limit is already set in flush_old_exec() so those calls to
      set_fs(USER_DS) are redundant.
      Signed-off-by: NMathias Krause <minipli@googlemail.com>
      Signed-off-by: NPaul Mundt <lethal@linux-sh.org>
      201fbceb
    • P
      serial: sh-sci: Abstract register maps. · 61a6976b
      Paul Mundt 提交于
      This takes a bit of a sledgehammer to the horribly CPU subtype
      ifdef-ridden header and abstracts all of the different register layouts
      in to distinct types which in turn can be overriden on a per-port basis,
      or permitted to default to the map matching the port type at probe time.
      
      In the process this ultimately fixes up inumerable bugs with mismatches
      on various CPU types (particularly the legacy ones that were obviously
      broken years ago and no one noticed) and provides a more tightly coupled
      and consolidated platform for extending and implementing generic
      features.
      Signed-off-by: NPaul Mundt <lethal@linux-sh.org>
      61a6976b
  3. 08 6月, 2011 2 次提交
    • P
      serial: sh-sci: Consolidate RXD pin handling. · 514820eb
      Paul Mundt 提交于
      Non-SCI parts do not have the special port reg necessary for cases where
      the RX and SCI pins are muxed and need to be manually polled, so these
      like always fall back on the normal FIFO processing paths. SH7760 is in a
      class in and of itself with regards to mapping its SIM card interface via
      the SCI port class despite not having any of the RXD lines wired up and
      so implicitly behaving more like a SCIF in this regard. Out of the other
      CPUs, some support the port check via the same block while others do it
      through an external SuperI/O, so it's not even possible to perform the
      check relative to the ioremapped cookie offset, so the separate read
      semantics are preserved here, too.
      Signed-off-by: NPaul Mundt <lethal@linux-sh.org>
      514820eb
    • S
      sh: Fix up xchg/cmpxchg corruption with gUSA RB. · 5bdbd4fa
      Srinivas KANDAGATLA 提交于
      gUSA special cases r15 for part of its login/out sequence, meaning that
      any parameters need to be explicitly prohibited from accidentally being
      assigned that particular register, and the compiler ultimately needs to
      use a temporary instead.
      
      Certain configurations have begun generating code paths that do indeed
      get allocated r15, resulting in immediate corruption of the exchanged
      value. This was observed in (amongst others) exit_mm() code generation
      where the xchg_u32 call was immediately corrupting a structure address.
      
      As this is a general gUSA restriction, the rest of the users likewise
      need to be updated to ensure sensible constraints.
      
      References: https://bugzilla.stlinux.com/show_bug.cgi?id=11229Signed-off-by: NSrinivas Kandagatla <srinivas.kandagatla@st.com>
      Reviewed-by: NStuart Menefy <stuart.menefy@st.com>
      Signed-off-by: NPaul Mundt <lethal@linux-sh.org>
      5bdbd4fa
  4. 06 6月, 2011 2 次提交
  5. 31 5月, 2011 4 次提交
  6. 29 5月, 2011 1 次提交
    • E
      ns: Wire up the setns system call · 7b21fddd
      Eric W. Biederman 提交于
      32bit and 64bit on x86 are tested and working.  The rest I have looked
      at closely and I can't find any problems.
      
      setns is an easy system call to wire up.  It just takes two ints so I
      don't expect any weird architecture porting problems.
      
      While doing this I have noticed that we have some architectures that are
      very slow to get new system calls.  cris seems to be the slowest where
      the last system calls wired up were preadv and pwritev.  avr32 is weird
      in that recvmmsg was wired up but never declared in unistd.h.  frv is
      behind with perf_event_open being the last syscall wired up.  On h8300
      the last system call wired up was epoll_wait.  On m32r the last system
      call wired up was fallocate.  mn10300 has recvmmsg as the last system
      call wired up.  The rest seem to at least have syncfs wired up which was
      new in the 2.6.39.
      
      v2: Most of the architecture support added by Daniel Lezcano <dlezcano@fr.ibm.com>
      v3: ported to v2.6.36-rc4 by: Eric W. Biederman <ebiederm@xmission.com>
      v4: Moved wiring up of the system call to another patch
      v5: ported to v2.6.39-rc6
      v6: rebased onto parisc-next and net-next to avoid syscall  conflicts.
      v7: ported to Linus's latest post 2.6.39 tree.
      
      >  arch/blackfin/include/asm/unistd.h     |    3 ++-
      >  arch/blackfin/mach-common/entry.S      |    1 +
      Acked-by: NMike Frysinger <vapier@gentoo.org>
      
      Oh - ia64 wiring looks good.
      Acked-by: NTony Luck <tony.luck@intel.com>
      Signed-off-by: NEric W. Biederman <ebiederm@xmission.com>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      7b21fddd
  7. 27 5月, 2011 4 次提交
  8. 25 5月, 2011 5 次提交
  9. 24 5月, 2011 4 次提交
  10. 23 5月, 2011 5 次提交
  11. 21 5月, 2011 1 次提交
    • L
      sanitize <linux/prefetch.h> usage · 268bb0ce
      Linus Torvalds 提交于
      Commit e66eed65 ("list: remove prefetching from regular list
      iterators") removed the include of prefetch.h from list.h, which
      uncovered several cases that had apparently relied on that rather
      obscure header file dependency.
      
      So this fixes things up a bit, using
      
         grep -L linux/prefetch.h $(git grep -l '[^a-z_]prefetchw*(' -- '*.[ch]')
         grep -L 'prefetchw*(' $(git grep -l 'linux/prefetch.h' -- '*.[ch]')
      
      to guide us in finding files that either need <linux/prefetch.h>
      inclusion, or have it despite not needing it.
      
      There are more of them around (mostly network drivers), but this gets
      many core ones.
      Reported-by: NStephen Rothwell <sfr@canb.auug.org.au>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      268bb0ce
  12. 18 5月, 2011 1 次提交
  13. 14 5月, 2011 1 次提交
  14. 12 5月, 2011 1 次提交
  15. 29 4月, 2011 1 次提交
    • R
      shmobile: Use power domains for platform runtime PM · 38ade3a1
      Rafael J. Wysocki 提交于
      shmobile platforms replace the runtime PM callbacks of the platform
      bus type with their own routines, but this means that the callbacks
      are replaced system-wide.  This may not be the right approach if the
      platform devices on the system are not of the same type (e.g. some
      of them belong to an SoC and the others are located in separate
      chips), because in those cases they may require different handling.
      Thus it is better to use power domains to override the platform bus
      type's PM handling, as it generally is possible to use different
      power domains for devices with different PM requirements.
      
      Define a default power domain for shmobile in both the SH and ARM
      falvors and use it to override the platform bus type's PM callbacks.
      Since the suspend and hibernate callbacks of the new "default" power
      domains need to be the same and the platform bus type's suspend and
      hibernate callbacks for the time being, export those callbacks so
      that can be used outside of the platform bus type code.
      Signed-off-by: NRafael J. Wysocki <rjw@sisk.pl>
      38ade3a1
  16. 27 4月, 2011 1 次提交
  17. 25 4月, 2011 1 次提交
  18. 18 4月, 2011 1 次提交