oprofile: convert oprofile from timer_hook to hrtimer
authorMartin Schwidefsky <schwidefsky@de.ibm.com>
Tue, 2 Mar 2010 15:01:10 +0000 (16:01 +0100)
committerRobert Richter <robert.richter@amd.com>
Tue, 2 Mar 2010 16:03:20 +0000 (17:03 +0100)
commitbc078e4eab65f11bbaeed380593ab8151b30d703
tree8d61457355fad4e5b5938cd7c01a1dd379778789
parentcfc9c0b450176a077205ef39092f0dc1a04e020a
oprofile: convert oprofile from timer_hook to hrtimer

Oprofile is currently broken on systems running with NOHZ enabled.
A maximum of 1 tick is accounted via the timer_hook if a cpu sleeps
for a longer period of time. This does bad things to the percentages
in the profiler output. To solve this problem convert oprofile to
use a restarting hrtimer instead of the timer_hook.

Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Signed-off-by: Robert Richter <robert.richter@amd.com>
drivers/oprofile/oprof.c
drivers/oprofile/oprof.h
drivers/oprofile/timer_int.c