1. 01 1月, 2009 1 次提交
  2. 27 12月, 2008 2 次提交
  3. 26 12月, 2008 2 次提交
  4. 17 12月, 2008 1 次提交
    • D
      sparc: We need to implement arch_ptrace_stop(). · 878a5535
      David S. Miller 提交于
      In order to always provide fully synchronized state to the debugger,
      we might need to do a synchronize_user_stack().
      
      A pair of hooks, arch_ptrace_stop_needed() and arch_ptrace_stop(),
      exist to handle this kind of situation.  It was created for
      the sake of IA64.
      
      Use them, to flush the kernel side cached register windows
      to the user stack, when necessary.
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      878a5535
  5. 13 12月, 2008 1 次提交
    • R
      cpumask: centralize cpu_online_map and cpu_possible_map · 98a79d6a
      Rusty Russell 提交于
      Impact: cleanup
      
      Each SMP arch defines these themselves.  Move them to a central
      location.
      
      Twists:
      1) Some archs (m32, parisc, s390) set possible_map to all 1, so we add a
         CONFIG_INIT_ALL_POSSIBLE for this rather than break them.
      
      2) mips and sparc32 '#define cpu_possible_map phys_cpu_present_map'.
         Those archs simply have phys_cpu_present_map replaced everywhere.
      
      3) Alpha defined cpu_possible_map to cpu_present_map; this is tricky
         so I just manipulate them both in sync.
      
      4) IA64, cris and m32r have gratuitous 'extern cpumask_t cpu_possible_map'
         declarations.
      Signed-off-by: NRusty Russell <rusty@rustcorp.com.au>
      Reviewed-by: NGrant Grundler <grundler@parisc-linux.org>
      Tested-by: NTony Luck <tony.luck@intel.com>
      Acked-by: NIngo Molnar <mingo@elte.hu>
      Cc: Mike Travis <travis@sgi.com>
      Cc: ink@jurassic.park.msu.ru
      Cc: rmk@arm.linux.org.uk
      Cc: starvik@axis.com
      Cc: tony.luck@intel.com
      Cc: takata@linux-m32r.org
      Cc: ralf@linux-mips.org
      Cc: grundler@parisc-linux.org
      Cc: paulus@samba.org
      Cc: schwidefsky@de.ibm.com
      Cc: lethal@linux-sh.org
      Cc: wli@holomorphy.com
      Cc: davem@davemloft.net
      Cc: jdike@addtoit.com
      Cc: mingo@redhat.com
      98a79d6a
  6. 12 12月, 2008 1 次提交
  7. 09 12月, 2008 1 次提交
  8. 08 12月, 2008 2 次提交
    • S
      sparc: fix sparse warnings in irq_32.c · 81265fd9
      Sam Ravnborg 提交于
      Fix following sparse warnings:
      symbol 'static_irqaction' was not declared. Should it be static?
      symbol 'static_irq_count' was not declared. Should it be static?
      symbol 'irq_action_lock' was not declared. Should it be static?
      symbol 'unexpected_irq' was not declared. Should it be static?
      symbol 'handler_irq' was not declared. Should it be static?
      returning void-valued expression
      returning void-valued expression
      returning void-valued expression
      symbol 'init_IRQ' was not declared. Should it be static?
      
      Warnings were fixed by addding proper declarations
      and fixing return path of a few functions.
      
      There remains several warnings all related to the floppy driver.
      Signed-off-by: NSam Ravnborg <sam@ravnborg.org>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      81265fd9
    • R
      sparc: Use sparc64 version of prom/printf.c · efe6c3dd
      Robert Reif 提交于
      Use sparc64 version of prom/printf.c.
      
      The only differences for sparc32 is that prom_printf is no longer
      exported for modules which should be OK.
      Signed-off-by: NRobert Reif <reif@earthlink.net>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      efe6c3dd
  9. 07 12月, 2008 1 次提交
  10. 06 12月, 2008 1 次提交
  11. 05 12月, 2008 10 次提交
  12. 04 12月, 2008 1 次提交
  13. 03 12月, 2008 1 次提交
  14. 01 12月, 2008 1 次提交
  15. 20 11月, 2008 1 次提交
  16. 13 11月, 2008 1 次提交
    • R
      sparc: Fix tty compile warnings. · e64ed022
      Robert Reif 提交于
      This patch fixes tty compile warnings as sugested by Alan Cox:
      
      CC drivers/char/n_tty.o
      drivers/char/n_tty.c: In function ‘normal_poll’:
      drivers/char/n_tty.c:1555: warning: array subscript is above array bounds
      drivers/char/n_tty.c:1564: warning: array subscript is above array bounds
      drivers/char/n_tty.c: In function ‘read_chan’:
      drivers/char/n_tty.c:1269: warning: array subscript is above array bounds
      CC drivers/char/tty_ioctl.o
      drivers/char/tty_ioctl.c: In function ‘set_termios’:
      drivers/char/tty_ioctl.c:533: warning: array subscript is above array 
      bounds
      drivers/char/tty_ioctl.c:537: warning: array subscript is above array 
      bounds
      drivers/char/tty_ioctl.c: In function ‘tty_mode_ioctl’:
      drivers/char/tty_ioctl.c:662: warning: array subscript is above array 
      bounds
      drivers/char/tty_ioctl.c:892: warning: array subscript is above array 
      bounds
      drivers/char/tty_ioctl.c:896: warning: array subscript is above array 
      bounds
      drivers/char/tty_ioctl.c:577: warning: array subscript is above array 
      bounds
      drivers/char/tty_ioctl.c:928: warning: array subscript is above array 
      bounds
      drivers/char/tty_ioctl.c:934: warning: array subscript is above array 
      bounds
      Signed-off-by: NRobert Reif <reif@earthlink.net>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      e64ed022
  17. 03 11月, 2008 1 次提交
  18. 02 11月, 2008 4 次提交
  19. 31 10月, 2008 2 次提交
    • S
      ftrace: nmi safe code clean ups · a26a2a27
      Steven Rostedt 提交于
      Impact: cleanup
      
      This patch cleans up the NMI safe code for dynamic ftrace as suggested
      by Andrew Morton.
      Signed-off-by: NSteven Rostedt <srostedt@redhat.com>
      Signed-off-by: NIngo Molnar <mingo@elte.hu>
      a26a2a27
    • S
      ftrace: nmi safe code modification · 17666f02
      Steven Rostedt 提交于
      Impact: fix crashes that can occur in NMI handlers, if their code is modified
      
      Modifying code is something that needs special care. On SMP boxes,
      if code that is being modified is also being executed on another CPU,
      that CPU will have undefined results.
      
      The dynamic ftrace uses kstop_machine to make the system act like a
      uniprocessor system. But this does not address NMIs, that can still
      run on other CPUs.
      
      One approach to handle this is to make all code that are used by NMIs
      not be traced. But NMIs can call notifiers that spread throughout the
      kernel and this will be very hard to maintain, and the chance of missing
      a function is very high.
      
      The approach that this patch takes is to have the NMIs modify the code
      if the modification is taking place. The way this works is that just
      writing to code executing on another CPU is not harmful if what is
      written is the same as what exists.
      
      Two buffers are used: an IP buffer and a "code" buffer.
      
      The steps that the patcher takes are:
      
       1) Put in the instruction pointer into the IP buffer
          and the new code into the "code" buffer.
       2) Set a flag that says we are modifying code
       3) Wait for any running NMIs to finish.
       4) Write the code
       5) clear the flag.
       6) Wait for any running NMIs to finish.
      
      If an NMI is executed, it will also write the pending code.
      Multiple writes are OK, because what is being written is the same.
      Then the patcher must wait for all running NMIs to finish before
      going to the next line that must be patched.
      
      This is basically the RCU approach to code modification.
      
      Thanks to Ingo Molnar for suggesting the idea, and to Arjan van de Ven
      for his guidence on what is safe and what is not.
      Signed-off-by: NSteven Rostedt <srostedt@redhat.com>
      Signed-off-by: NIngo Molnar <mingo@elte.hu>
      17666f02
  20. 30 10月, 2008 1 次提交
  21. 20 10月, 2008 1 次提交
    • M
      container freezer: add TIF_FREEZE flag to all architectures · 83224b08
      Matt Helsley 提交于
      This patch series introduces a cgroup subsystem that utilizes the swsusp
      freezer to freeze a group of tasks.  It's immediately useful for batch job
      management scripts.  It should also be useful in the future for
      implementing container checkpoint/restart.
      
      The freezer subsystem in the container filesystem defines a cgroup file
      named freezer.state.  Reading freezer.state will return the current state
      of the cgroup.  Writing "FROZEN" to the state file will freeze all tasks
      in the cgroup.  Subsequently writing "RUNNING" will unfreeze the tasks in
      the cgroup.
      
      * Examples of usage :
      
         # mkdir /containers/freezer
         # mount -t cgroup -ofreezer freezer  /containers
         # mkdir /containers/0
         # echo $some_pid > /containers/0/tasks
      
      to get status of the freezer subsystem :
      
         # cat /containers/0/freezer.state
         RUNNING
      
      to freeze all tasks in the container :
      
         # echo FROZEN > /containers/0/freezer.state
         # cat /containers/0/freezer.state
         FREEZING
         # cat /containers/0/freezer.state
         FROZEN
      
      to unfreeze all tasks in the container :
      
         # echo RUNNING > /containers/0/freezer.state
         # cat /containers/0/freezer.state
         RUNNING
      
      This patch:
      
      The first step in making the refrigerator() available to all
      architectures, even for those without power management.
      
      The purpose of such a change is to be able to use the refrigerator() in a
      new control group subsystem which will implement a control group freezer.
      
      [akpm@linux-foundation.org: fix sparc]
      Signed-off-by: NCedric Le Goater <clg@fr.ibm.com>
      Signed-off-by: NMatt Helsley <matthltc@us.ibm.com>
      Acked-by: NPavel Machek <pavel@suse.cz>
      Acked-by: NSerge E. Hallyn <serue@us.ibm.com>
      Acked-by: NRafael J. Wysocki <rjw@sisk.pl>
      Acked-by: NNigel Cunningham <nigel@tuxonice.net>
      Tested-by: NMatt Helsley <matthltc@us.ibm.com>
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      83224b08
  22. 16 10月, 2008 1 次提交
  23. 14 10月, 2008 1 次提交
  24. 10 10月, 2008 1 次提交