android_kernel_xiaomi_sm8350/arch/x86_64
Andi Kleen 95833c83f3 [PATCH] x86_64: Add idle notifiers
This adds a new notifier chain that is called with IDLE_START
when a CPU goes idle and IDLE_END when it goes out of idle.
The context can be idle thread or interrupt context.

Since we cannot rely on MONITOR/MWAIT existing the idle
end check currently has to be done in all interrupt
handlers.

They were originally inspired by the similar s390 implementation.

They have a variety of applications:
- They will be needed for CONFIG_NO_IDLE_HZ
- They can be used for oprofile to fix up the missing time
in idle when performance counters don't tick.
- They can be used for better C state management in ACPI
- They could be used for microstate accounting.

This is just infrastructure so far, no users.

Signed-off-by: Andi Kleen <ak@suse.de>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2006-01-11 19:04:55 -08:00
..
boot Merge ssh://master.kernel.org/pub/scm/linux/kernel/git/sam/kbuild 2006-01-10 08:21:33 -08:00
crypto [CRYPTO] Allow AES C/ASM implementations to coexist 2006-01-09 14:15:39 -08:00
ia32 [PATCH] x86_64: Implement is_compat_task the right way 2006-01-11 19:04:53 -08:00
kernel [PATCH] x86_64: Add idle notifiers 2006-01-11 19:04:55 -08:00
lib [PATCH] x86_64: Make udelay more accurate 2006-01-11 19:04:52 -08:00
mm [PATCH] x86_64: Clean up some printks in NUMA code 2006-01-11 19:04:55 -08:00
oprofile [PATCH] Move Kprobes and Oprofile to "Instrumentation Support" menu 2005-11-07 07:53:35 -08:00
pci [PATCH] x86_64: Remove bogus file in arch/x86_64/pci 2006-01-11 19:04:51 -08:00
defconfig [PATCH] x86_64: Update defconfig 2006-01-11 19:01:09 -08:00
Kconfig [PATCH] x86_64: Generalize DMI and enable for x86-64 2006-01-11 19:04:51 -08:00
Kconfig.debug [PATCH] x86/x86_64: mark rodata section read-only: x86-64 support 2006-01-06 08:33:36 -08:00
Makefile [PATCH] x86_64: Allow compilation on a 32bit biarch toolchain 2006-01-11 19:04:52 -08:00