mirror of
https://github.com/adulau/aha.git
synced 2024-12-28 03:36:19 +00:00
sched: add debug checks to idle functions
Cc: Venkatesh Pallipadi <venkatesh.pallipadi@intel.com> Cc: "Justin Mattock" <justinmattock@gmail.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Ingo Molnar <mingo@elte.hu>
This commit is contained in:
parent
733a0771df
commit
d478c2cfaa
1 changed files with 2 additions and 0 deletions
|
@ -1124,6 +1124,7 @@ void sched_clock_idle_sleep_event(void)
|
|||
{
|
||||
struct rq *rq = cpu_rq(smp_processor_id());
|
||||
|
||||
WARN_ON(!irqs_disabled());
|
||||
spin_lock(&rq->lock);
|
||||
__update_rq_clock(rq);
|
||||
spin_unlock(&rq->lock);
|
||||
|
@ -1139,6 +1140,7 @@ void sched_clock_idle_wakeup_event(u64 delta_ns)
|
|||
struct rq *rq = cpu_rq(smp_processor_id());
|
||||
u64 now = sched_clock();
|
||||
|
||||
WARN_ON(!irqs_disabled());
|
||||
rq->idle_clock += delta_ns;
|
||||
/*
|
||||
* Override the previous timestamp and ignore all
|
||||
|
|
Loading…
Reference in a new issue