Revision 01599fca6758d2cd133e78f87426fc851c9ea725 authored by Andrew Morton on 13 April 2009, 17:27:49 UTC, committed by Linus Torvalds on 13 April 2009, 18:09:46 UTC
Atttempting to rid us of the problematic work_on_cpu().  Just use
smp_call_fuction_single() here.

This repairs a 10% sysbench(oltp)+mysql regression which Mike reported,
due to

  commit 6b44003e5ca66a3fffeb5bc90f40ada2c4340896
  Author: Andrew Morton <akpm@linux-foundation.org>
  Date:   Thu Apr 9 09:50:37 2009 -0600

      work_on_cpu(): rewrite it to create a kernel thread on demand

It seems that the kernel calls these acpi-cpufreq functions at a quite
high frequency.

Valdis Kletnieks also reports that this causes 70-90 forks per second on
his hardware.

Cc: Valdis.Kletnieks@vt.edu
Cc: Rusty Russell <rusty@rustcorp.com.au>
Cc: Venkatesh Pallipadi <venkatesh.pallipadi@intel.com>
Cc: Len Brown <len.brown@intel.com>
Cc: Zhao Yakui <yakui.zhao@intel.com>
Acked-by: Dave Jones <davej@redhat.com>
Cc: Thomas Gleixner <tglx@linutronix.de>
Tested-by: Mike Galbraith <efault@gmx.de>
Cc: "Zhang, Yanmin" <yanmin_zhang@linux.intel.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Acked-by: Ingo Molnar <mingo@elte.hu>
[ Made it use smp_call_function_many() instead of looping over cpu's
  with smp_call_function_single()    - Linus ]
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
1 parent 8371f87
History
File Mode Size
mpu401
opl3
opl4
pcsp
vx
Kconfig -rw-r--r-- 5.2 KB
Makefile -rw-r--r-- 723 bytes
dummy.c -rw-r--r-- 20.1 KB
ml403-ac97cr.c -rw-r--r-- 40.2 KB
mtpav.c -rw-r--r-- 20.1 KB
mts64.c -rw-r--r-- 26.7 KB
pcm-indirect2.c -rw-r--r-- 16.8 KB
pcm-indirect2.h -rw-r--r-- 5.1 KB
portman2x4.c -rw-r--r-- 25.2 KB
serial-u16550.c -rw-r--r-- 31.1 KB
virmidi.c -rw-r--r-- 5.6 KB

back to top