1. 29 10月, 2010 2 次提交
    • T
      oprofile: Remove deprecated use of flush_scheduled_work() · 3d7851b3
      Tejun Heo 提交于
      flush_scheduled_work() is deprecated and scheduled to be removed.
      sync_stop() currently cancels cpu_buffer works inside buffer_mutex and
      flushes the system workqueue outside.  Instead, split end_cpu_work()
      into two parts - stopping further work enqueues and flushing works -
      and do the former inside buffer_mutex and latter outside.
      
      For stable kernels v2.6.35.y and v2.6.36.y.
      Signed-off-by: NTejun Heo <tj@kernel.org>
      Cc: stable@kernel.org
      Signed-off-by: NRobert Richter <robert.richter@amd.com>
      3d7851b3
    • S
      oprofile: Fix the hang while taking the cpu offline · 4ac3dbec
      Santosh Shilimkar 提交于
      The kernel build with CONFIG_OPROFILE and CPU_HOTPLUG enabled.
      The oprofile is initialised using system timer in absence of hardware
      counters supports. Oprofile isn't started from userland.
      
      In this setup while doing a CPU offline the kernel hangs in infinite
      for loop inside lock_hrtimer_base() function
      
      This happens because as part of oprofile_cpu_notify(, it tries to
      stop an hrtimer which was never started. These per-cpu hrtimers
      are started when the oprfile is started.
      	echo 1	> /dev/oprofile/enable
      
      This problem also existwhen the cpu is booted with maxcpus parameter
      set. When bringing the remaining cpus online the timers are started
      even if oprofile is not yet enabled.
      
      This patch fix this issue by adding a state variable so that
      these hrtimer start/stop is only attempted when oprofile is
      started
      
      For stable kernels v2.6.35.y and v2.6.36.y.
      Reported-by: NJan Sebastien <s-jan@ti.com>
      Tested-by: Nsricharan <r.sricharan@ti.com>
      Signed-off-by: NSantosh Shilimkar <santosh.shilimkar@ti.com>
      Cc: stable@kernel.org
      Signed-off-by: NRobert Richter <robert.richter@amd.com>
      4ac3dbec
  2. 26 10月, 2010 1 次提交
  3. 25 10月, 2010 4 次提交
  4. 24 10月, 2010 2 次提交
  5. 23 10月, 2010 1 次提交
    • A
      perf tools: Remove direct slang.h include · 8bfb5e7d
      Arnaldo Carvalho de Melo 提交于
      We wrap it in libslang.h because we need to deal with older slang release
      where HAVE_LONG_LONG is referenced as:
      
      So we need to define it.
      
      Noticed when rebuilding the perf tools on a RHEL5 machine.
      
      Cc: Frédéric Weisbecker <fweisbec@gmail.com>
      Cc: Mike Galbraith <efault@gmx.de>
      Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
      Cc: Paul Mackerras <paulus@samba.org>
      Cc: Stephane Eranian <eranian@google.com>
      LKML-Reference: <new-submission>
      Signed-off-by: NArnaldo Carvalho de Melo <acme@redhat.com>
      8bfb5e7d
  6. 22 10月, 2010 30 次提交