1. 12 7月, 2009 3 次提交
  2. 11 7月, 2009 4 次提交
    • M
      sh: Mark __switch_to() as __notrace_funcgraph · 7816fecd
      Matt Fleming 提交于
      Annotate __switch_to() so that the function graph tracer does not try to
      trace it. Use __notrace_funcgraph, as opposed to notrace, so that other
      tracers can continue to trace __switch_to().
      
      The reason that we don't want to trace __switch_to() with the function
      graph tracer is because of how the return address stack in task_struct
      is implemented. When we enter __switch_to we store the real return
      address on prev's ret_stack. When we return from __switch_to() we've
      patched the return address on the kernel stack to be
      return_to_handler. Calling return_to_handler we do,
      
             -> ftrace_return_to_handler()
             	  -> ftrace_pop_return_ftrace()
      
      Which tries to pop the real return address from current->ret_stack. The
      problem being that we stored the return address on prev->ret_stack, but
      current now points to next, and next->ret_stack doesn't contain the
      correct return address (and is possibly even empty).
      Signed-off-by: NMatt Fleming <matt@console-pimps.org>
      Signed-off-by: NPaul Mundt <lethal@linux-sh.org>
      7816fecd
    • M
      sh: Function graph tracer support · 327933f5
      Matt Fleming 提交于
      Add both dynamic and static function graph tracer support for sh.
      Signed-off-by: NMatt Fleming <matt@console-pimps.org>
      Signed-off-by: NPaul Mundt <lethal@linux-sh.org>
      327933f5
    • M
      sh: Provide diagnostic kernel stack checks · b99610fb
      Matt Fleming 提交于
      Enable kernel stack checking code in both the dynamic ftrace and mcount
      code paths. Check the stack to see if it's overflowing and make sure
      that the stack pointer contains an address that's either in init_stack
      or after the bss.
      Signed-off-by: NMatt Fleming <matt@console-pimps.org>
      Signed-off-by: NPaul Mundt <lethal@linux-sh.org>
      b99610fb
    • P
      sched: INIT_PREEMPT_COUNT · c99e6efe
      Peter Zijlstra 提交于
      Pull the initial preempt_count value into a single
      definition site.
      
      Maintainers for: alpha, ia64 and m68k, please have a look,
      your arch code is funny.
      
      The header magic is a bit odd, but similar to the KERNEL_DS
      one, CPP waits with expanding these macros until the
      INIT_THREAD_INFO macro itself is expanded, which is in
      arch/*/kernel/init_task.c where we've already included
      sched.h so we're good.
      
      Cc: tony.luck@intel.com
      Cc: rth@twiddle.net
      Cc: geert@linux-m68k.org
      Signed-off-by: NPeter Zijlstra <a.p.zijlstra@chello.nl>
      Acked-by: NMatt Mackall <mpm@selenic.com>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      c99e6efe
  3. 10 7月, 2009 1 次提交
  4. 06 7月, 2009 3 次提交
  5. 05 7月, 2009 2 次提交
  6. 04 7月, 2009 5 次提交
    • M
      sh: Use bootmem ontop of lmb for NUMA · 5084f61a
      Matt Fleming 提交于
      Like the UP case, use lmb as the foundation of memory resource
      management on NUMA.
      Signed-off-by: NMatt Fleming <matt@console-pimps.org>
      Signed-off-by: NPaul Mundt <lethal@linux-sh.org>
      5084f61a
    • M
      sh: cpuidle for SuperH Mobile using hwblk · 7426394f
      Magnus Damm 提交于
      This patch adds cpuidle support for SuperH Mobile.
      
      The sleep mode selected by cpuidle is compared with
      the mode selected by the hwblk sleep code and the
      best allowed mode is entered.
      
      At this point "Sleep mode" and "Sleep mode + SF" are
      supported. This code can easily be extended to support
      "Software suspend mode", but the assembly code must
      first be updated to avoid loosing interrupts.
      
      Also, update the code to only copy the assembly snippet
      into internal memory once at bootup.
      Signed-off-by: NMagnus Damm <damm@igel.co.jp>
      Signed-off-by: NPaul Mundt <lethal@linux-sh.org>
      7426394f
    • M
      sh: hwblk for sh7722 · a61c1a63
      Magnus Damm 提交于
      This patch contains the sh7722 specific hwblk implementation.
      
      Hwblk ids are added to the processor specific header file,
      module stop bits and areas are kept track of as hwblks,
      clocks are converted to make use of the shared hwblk code.
      Code to determine allowed sleep modes is also added.
      Signed-off-by: NMagnus Damm <damm@igel.co.jp>
      Signed-off-by: NPaul Mundt <lethal@linux-sh.org>
      a61c1a63
    • M
      sh: hwblk base implementation · 79714acb
      Magnus Damm 提交于
      This patch is the hwblk base implementation, containing
      structures and shared functions dealing with hardware blocks.
      
      A each processor model should provide a list of hwblks and
      describe which module stop bit that is associated with each
      hwblck and how the hwblks are grouped together into areas.
      
      The shared code keeps track of the usage count for each
      hwblk and the areas. Fallback implementations for processor
      specific code are also kept as weak symbols.
      
      The clock framework, the runtime pm code and cpuidle will
      all tie into this hwblk implementation.
      Signed-off-by: NMagnus Damm <damm@igel.co.jp>
      Signed-off-by: NPaul Mundt <lethal@linux-sh.org>
      79714acb
    • M
      sh: add r8a66597 usb0 host to the se7724 board · 9731f4a2
      Magnus Damm 提交于
      Add USB host support for port CN27 on the Solution Engine 7724
      board. The r8a66597-hcd driver is hooked up as a platform device
      and some registers are configured to enable the USB host function.
      The hardware driving the USB port is the on-chip USB0 block in
      the sh7724 processor configured as USB host controller.
      Signed-off-by: NMagnus Damm <damm@igel.co.jp>
      Signed-off-by: NPaul Mundt <lethal@linux-sh.org>
      9731f4a2
  7. 03 7月, 2009 2 次提交
  8. 02 7月, 2009 1 次提交
    • M
      sh: Fix compiler error and include the definition of IS_ERR_VALUE · 34e19ada
      Matt Fleming 提交于
      When arch/sh/include/asm/syscall_32.h is included from a file that
      doesn't also include linux/err.h the following error is produced,
      
      In file included from /home/matt/src/kernels/sh-2.6/arch/sh/include/asm/syscall.h:5,
                       from kernel/trace/trace_syscalls.c:3:
      /home/matt/src/kernels/sh-2.6/arch/sh/include/asm/syscall_32.h: In function 'syscall_get_error':
      /home/matt/src/kernels/sh-2.6/arch/sh/include/asm/syscall_32.h:28: error: implicit declaration of function 'IS_ERR_VALUE'
      make[2]: *** [kernel/trace/trace_syscalls.o] Error 1
      make[1]: *** [kernel/trace] Error 2
      make: *** [kernel] Error 2
      Signed-off-by: NMatt Fleming <matt@console-pimps.org>
      Signed-off-by: NPaul Mundt <lethal@linux-sh.org>
      34e19ada
  9. 01 7月, 2009 2 次提交
  10. 29 6月, 2009 2 次提交
  11. 26 6月, 2009 1 次提交
  12. 25 6月, 2009 3 次提交
  13. 24 6月, 2009 2 次提交
  14. 23 6月, 2009 5 次提交
  15. 22 6月, 2009 1 次提交
  16. 19 6月, 2009 1 次提交
  17. 18 6月, 2009 2 次提交