mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 02:32:09 -04:00
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 <[email protected]>
This commit is contained in:
parent
dd41f596cd
commit
bb29ab2686
3 changed files with 17 additions and 1 deletions
|
|
@ -67,6 +67,13 @@ unsigned long long __attribute__((weak)) sched_clock(void)
|
|||
return (unsigned long long)jiffies * (1000000000 / HZ);
|
||||
}
|
||||
|
||||
/*
|
||||
* 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 ],
|
||||
|
|
|
|||
Loading…
Reference in a new issue