]> err.no Git - linux-2.6/commit
[IA64] VIRT_CPU_ACCOUNTING (accurate cpu time accounting)
authorHidetoshi Seto <seto.hidetoshi@jp.fujitsu.com>
Tue, 29 Jan 2008 05:27:30 +0000 (14:27 +0900)
committerTony Luck <tony.luck@intel.com>
Wed, 20 Feb 2008 20:55:37 +0000 (12:55 -0800)
commitb64f34cdfe5bef9dfed1304c513220b0f2862eca
tree04cb9216a9de18afcb27f9bac3fda1f3c7bacbbd
parent5d9c4a7de64d398604a978d267a6987f1f4025b7
[IA64] VIRT_CPU_ACCOUNTING (accurate cpu time accounting)

This patch implements VIRT_CPU_ACCOUNTING for ia64,
which enable us to use more accurate cpu time accounting.

The VIRT_CPU_ACCOUNTING is an item of kernel config, which s390
and powerpc arch have.  By turning this config on, these archs
change the mechanism of cpu time accounting from tick-sampling
based one to state-transition based one.

The state-transition based accounting is done by checking time
(cycle counter in processor) at every state-transition point,
such as entrance/exit of kernel, interrupt, softirq etc.
The difference between point to point is the actual time consumed
during in the state. There is no doubt about that this value is
more accurate than that of tick-sampling based accounting.

Signed-off-by: Hidetoshi Seto <seto.hidetoshi@jp.fujitsu.com>
Signed-off-by: Tony Luck <tony.luck@intel.com>
12 files changed:
arch/ia64/Kconfig
arch/ia64/ia32/elfcore32.h
arch/ia64/kernel/asm-offsets.c
arch/ia64/kernel/entry.S
arch/ia64/kernel/fsys.S
arch/ia64/kernel/head.S
arch/ia64/kernel/ivt.S
arch/ia64/kernel/minstate.h
arch/ia64/kernel/time.c
include/asm-ia64/cputime.h
include/asm-ia64/system.h
include/asm-ia64/thread_info.h