diff options
author | Ingo Molnar <mingo@elte.hu> | 2007-07-09 18:51:59 +0200 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2007-07-09 18:51:59 +0200 |
commit | bb29ab26863c022743143f27956cc0ca362f258c (patch) | |
tree | f8106b8a82d4abe9c3b217c7ca96307539a945ad /kernel | |
parent | dd41f596cda0d7d6e4a8b139ffdfabcefdd46528 (diff) | |
download | kernel_samsung_espresso10-bb29ab26863c022743143f27956cc0ca362f258c.tar.gz kernel_samsung_espresso10-bb29ab26863c022743143f27956cc0ca362f258c.tar.bz2 kernel_samsung_espresso10-bb29ab26863c022743143f27956cc0ca362f258c.zip |
sched: x86, track TSC-unstable events
track TSC-unstable events and propagate it to the scheduler code.
Also allow sched_clock() to be used when the TSC is unstable,
the rq_clock() wrapper creates a reliable clock out of it.
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'kernel')
-rw-r--r-- | kernel/sched.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/kernel/sched.c b/kernel/sched.c index 01ba4b1848a..6150cd70f44 100644 --- a/kernel/sched.c +++ b/kernel/sched.c @@ -68,6 +68,13 @@ unsigned long long __attribute__((weak)) sched_clock(void) } /* + * CPU frequency is/was unstable - start new by setting prev_clock_raw: + */ +void sched_clock_unstable_event(void) +{ +} + +/* * Convert user-nice values [ -20 ... 0 ... 19 ] * to static priority [ MAX_RT_PRIO..MAX_PRIO-1 ], * and back. |