1. 10 4月, 2008 7 次提交
    • M
      [IA64] kprobes: kprobe-booster for ia64 · 34e1ceb1
      Masami Hiramatsu 提交于
      Add kprobe-booster support on ia64.
      
      Kprobe-booster improves the performance of kprobes by eliminating single-step,
      where possible.  Currently, kprobe-booster is implemented on x86 and x86-64.
      This is an ia64 port.
      
      On ia64, kprobe-booster executes a copied bundle directly, instead of single
      stepping.  Bundles which have B or X unit and which may cause an exception
      (including break) are not executed directly.  And also, to prevent hitting
      break exceptions on the copied bundle, only the hindmost kprobe is executed
      directly if several kprobes share a bundle and are placed in different slots.
      Note: set_brl_inst() is used for preparing an instruction buffer(it does not
      modify any active code), so it does not need any atomic operation.
      Signed-off-by: NMasami Hiramatsu <mhiramat@redhat.com>
      Cc: Anil S Keshavamurthy <anil.s.keshavamurthy@intel.com>
      Cc: Ananth N Mavinakayanahalli <ananth@in.ibm.com>
      Cc: bibo,mao <bibo.mao@intel.com>
      Cc: Rusty Lynch <rusty.lynch@intel.com>
      Cc: Prasanna S Panchamukhi <prasanna@in.ibm.com>
      Cc: Jim Keniston <jkenisto@us.ibm.com>
      Cc: Shaohua Li <shaohua.li@intel.com>
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NTony Luck <tony.luck@intel.com>
      34e1ceb1
    • P
      [IA64] fix getpid and set_tid_address fast system calls for pid namespaces · 96ded9da
      Pavel Emelyanov 提交于
      The sys_getpid() and sys_set_tid_address() behavior changed from
      
      	return current->tgid
      
      to
      
      	struct pid *pid;
      	pid = current->pids[PIDTYPE_PID].pid;
      	return pid->numbers[pid->level].nr;
      
      But the fast system calls on ia64 still operate the old way.  Patch them
      appropriately to let ia64 work with pid namespaces.  Besides, this is one more
      step in deprecating of pid and tgid on task_struct.
      
      The fsys_getppid() is to be patched as well, but its logic is much
      more complex now, so I will make it later.
      
      One thing I'm not 100% sure is the trick with the IA64_UPID_SHIFT.  On order
      to access the pid->level's element of an array I have to perform the following
      calculations
      
      	pid + sizeof(struct upid) * pid->level
      
      The problem is that ia64 can only multiply float point registers, while all
      the offsets I have in code are in rXX ones.  Fortunately, the sizeof(struct
      upid) is 32 bytes on ia64 (and is very unlikely to ever change), so the
      calculations get simpler:
      
      	pid + pid->level << 5
      
      So, I introduce the IA64_UPID_SHIFT and use the shl instruction.  I also
      looked at how gcc compiles the similar place and found that it makes it with
      shift as well.  Is this OK to do so?
      
      Tested with ski emulator with 2.6.24 kernel, but fits 2.6.25-rc4 and
      2.6.25-rc4-mm1 as well.
      Signed-off-by: NPavel Emelyanov <xemul@openvz.org>
      Cc: David Mosberger-Tang <davidm@hpl.hp.com>
      Cc: Hidetoshi Seto <seto.hidetoshi@jp.fujitsu.com>
      Cc: Fenghua Yu <fenghua.yu@intel.com>
      Cc: Amy Griffis <amy.griffis@hp.com>
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NTony Luck <tony.luck@intel.com>
      96ded9da
    • R
      [IA64] Replace explicit jiffies tests with time_* macros. · d167cb85
      Robert P. J. Day 提交于
      In arch/ia64/sn/kernel/xpc_{main,partition}.c
      Signed-off-by: NRobert P. J. Day <rpjday@crashcourse.ca>
      Signed-off-by: NTony Luck <tony.luck@intel.com>
      d167cb85
    • L
      [IA64] use goto to jump out do/while_each_thread · 6794c752
      Li Zefan 提交于
      do_each_thread/while_each_thread is a double loop, so
      should use 'goto' rather than 'break' to break out
      the loop.
      Signed-off-by: NLi Zefan <lizf@cn.fujitsu.com>
      Signed-off-by: NTony Luck <tony.luck@intel.com>
      6794c752
    • A
      [IA64] Fix unlock ordering in smp_callin · e9145016
      Alan D. Brunelle 提交于
      One should normally unlock in the reverse order of the lock calls,
      and in this case there certainly is no reason not to.
      Signed-off-by: NAlan D. Brunelle <alan.brunelle@hp.com>
      Signed-off-by: NTony Luck <tony.luck@intel.com>
      e9145016
    • H
      [IA64] kdump: crash.c coding style fix · 3975afff
      Hidetoshi Seto 提交于
      Fix indenting of switch statement to follow Documentation/CodingStyle.
      Signed-off-by: NHidetoshi Seto <seto.hidetoshi@jp.fujitsu.com>
      Signed-off-by: NTony Luck <tony.luck@intel.com>
      3975afff
    • H
      [IA64] kdump: add kdump_on_fatal_mca · b0247a55
      Hidetoshi Seto 提交于
      While it is convenient that we can invoke kdump by asserting INIT
      via button on chassis etc., there are some situations that invoking
      kdump on fatal MCA is not welcomed rather than rebooting fast without
      dump.
      
      This patch adds a new flag 'kdump_on_fatal_mca' that is independent
      from 'kdump_on_init' currently available.  Adding this flag enable
      us to turning on/off of kdump depend on the event, INIT and/or fatal
      MCA.  Default for this flag is to take the dump.
      Signed-off-by: NHidetoshi Seto <seto.hidetoshi@jp.fujitsu.com>
      Signed-off-by: NTony Luck <tony.luck@intel.com>
      b0247a55
  2. 07 3月, 2008 6 次提交
  3. 06 3月, 2008 6 次提交
  4. 05 3月, 2008 8 次提交
  5. 12 2月, 2008 1 次提交
    • T
      [IA64] Fix build for sim_defconfig · 10d0aa3c
      Tony Luck 提交于
      Commit bdc80787 broke the build
      for this config because the sim_defconfig selects CONFIG_HZ=250
      but include/asm-ia64/param.h has an ifdef for the simulator to
      force HZ to 32.  So we ended up with a kernel/timeconst.h set
      for HZ=250 ... which then failed the check for the right HZ
      value and died with:
      
      Drop the #ifdef magic from param.h and make force CONFIG_HZ=32
      directly for the simulator.
      Signed-off-by: NTony Luck <tony.luck@intel.com>
      10d0aa3c
  6. 11 2月, 2008 1 次提交
  7. 09 2月, 2008 8 次提交
  8. 08 2月, 2008 3 次提交