linux/arch/x86/kernel/cpu
Peter Zijlstra e360adbe29 irq_work: Add generic hardirq context callbacks
Provide a mechanism that allows running code in IRQ context. It is
most useful for NMI code that needs to interact with the rest of the
system -- like wakeup a task to drain buffers.

Perf currently has such a mechanism, so extract that and provide it as
a generic feature, independent of perf so that others may also
benefit.

The IRQ context callback is generated through self-IPIs where
possible, or on architectures like powerpc the decrementer (the
built-in timer facility) is set to generate an interrupt immediately.

Architectures that don't have anything like this get to do with a
callback from the timer tick. These architectures can call
irq_work_run() at the tail of any IRQ handlers that might enqueue such
work (like the perf IRQ handler) to avoid undue latencies in
processing the work.

Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Acked-by: Kyle McMartin <kyle@mcmartin.ca>
Acked-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
[ various fixes ]
Signed-off-by: Huang Ying <ying.huang@intel.com>
LKML-Reference: <1287036094.7768.291.camel@yhuang-dev>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
2010-10-18 19:58:50 +02:00
..
cpufreq [CPUFREQ] Fix memory leaks in pcc_cpufreq_do_osc 2010-09-30 16:14:23 -04:00
mcheck x86, mcheck: Avoid duplicate sysfs links/files for thresholding banks 2010-09-05 14:35:49 +02:00
mtrr Merge branches 'x86-cleanups-for-linus', 'x86-vmware-for-linus', 'x86-mtrr-for-linus', 'x86-apic-for-linus', 'x86-fpu-for-linus' and 'x86-vdso-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip 2010-08-06 16:22:59 -07:00
.gitignore
amd.c x86, cpu: Fix regression in AMD errata checking code 2010-08-18 09:16:28 -07:00
bugs_64.c
bugs.c x86: Avoid check hlt for newer cpus 2010-05-07 15:31:17 -07:00
centaur.c x86, cpu: mv display_cacheinfo -> cpu_detect_cache_sizes 2009-11-23 11:59:53 -08:00
common.c x86, cpu: After uncapping CPUID, re-run CPU feature detection 2010-09-28 16:33:14 -07:00
cpu.h x86, cpu: After uncapping CPUID, re-run CPU feature detection 2010-09-28 16:33:14 -07:00
cyrix.c x86, cpu: mv display_cacheinfo -> cpu_detect_cache_sizes 2009-11-23 11:59:53 -08:00
hypervisor.c Introduce CONFIG_XEN_PVHVM compile option 2010-07-29 11:11:33 -07:00
intel_cacheinfo.c x86, cacheinfo: Carve out L3 cache slot accessors 2010-06-09 15:57:41 -07:00
intel.c x86, cpu: After uncapping CPUID, re-run CPU feature detection 2010-09-28 16:33:14 -07:00
Makefile Merge branch 'x86-asm-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip 2010-08-06 10:07:34 -07:00
mkcapflags.pl
mshyperv.c x86: Export the symbol ms_hyperv 2010-07-08 14:12:03 -07:00
perf_event_amd.c perf_events: Fix bogus AMD64 generic TLB events 2010-10-18 19:58:48 +02:00
perf_event_intel_ds.c perf_events: Fix BTS interrupt handling to avoid being dazed by NMI (v2) 2010-09-13 08:43:40 +02:00
perf_event_intel_lbr.c perf, x86: Clean up debugctlmsr bit definitions 2010-03-26 09:41:03 +01:00
perf_event_intel.c perf_events: Fix BTS interrupt handling to avoid being dazed by NMI (v2) 2010-09-13 08:43:40 +02:00
perf_event_p4.c Merge branch 'perf/urgent' into perf/core 2010-10-05 09:47:14 +02:00
perf_event_p6.c perf, x86: Fix __initconst vs const 2010-04-02 19:52:05 +02:00
perf_event.c irq_work: Add generic hardirq context callbacks 2010-10-18 19:58:50 +02:00
perfctr-watchdog.c perf, x86: rename macro in ARCH_PERFMON_EVENTSEL_ENABLE 2010-03-01 14:21:23 +01:00
powerflags.c
proc.c
scattered.c x86/hwmon: fix initialization of coretemp 2010-09-24 11:44:19 -07:00
sched.c
topology.c x86, cpu: Split addon_cpuid_features.c 2010-07-19 19:02:41 -07:00
transmeta.c x86, cpu: mv display_cacheinfo -> cpu_detect_cache_sizes 2009-11-23 11:59:53 -08:00
umc.c
vmware.c x86, vmware: Preset lpj values when on VMware. 2010-08-02 17:16:30 -07:00