]> git.baikalelectronics.ru Git - kernel.git/commit
[PATCH] i386/x86-64/ia64: Move polling flag into thread_info_status
authorAndi Kleen <ak@suse.de>
Mon, 26 Jun 2006 11:59:11 +0000 (13:59 +0200)
committerLinus Torvalds <torvalds@g5.osdl.org>
Mon, 26 Jun 2006 17:48:21 +0000 (10:48 -0700)
commit28078a3b0565d9a735baa5606dfbe11be95f40af
treef95c376015d340794f64f36fd52f8fa80a1daab7
parent9807b5a6db9907469f0460d87ccaa84ff32b6896
[PATCH] i386/x86-64/ia64: Move polling flag into thread_info_status

During some profiling I noticed that default_idle causes a lot of
memory traffic. I think that is caused by the atomic operations
to clear/set the polling flag in thread_info. There is actually
no reason to make this atomic - only the idle thread does it
to itself, other CPUs only read it. So I moved it into ti->status.

Converted i386/x86-64/ia64 for now because that was the easiest
way to fix ACPI which also manipulates these flags in its idle
function.

Cc: Nick Piggin <npiggin@novell.com>
Cc: Tony Luck <tony.luck@intel.com>
Cc: Len Brown <len.brown@intel.com>
Signed-off-by: Andi Kleen <ak@suse.de>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
arch/i386/kernel/apm.c
arch/i386/kernel/process.c
arch/ia64/kernel/process.c
arch/x86_64/kernel/process.c
drivers/acpi/processor_idle.c
include/asm-i386/thread_info.h
include/asm-ia64/thread_info.h
include/asm-x86_64/thread_info.h
kernel/sched.c