Displaying 2 results from an estimated 2 matches for "tick_sch".
Did you mean:
tick_sched
2017 Nov 13
0
[PATCH RFC v3 5/6] tick: get duration of the last idle loop
...lta);
ts->idle_entrytime = now;
+ ts->idle_length = delta;
}
if (last_update_time)
@@ -998,6 +999,16 @@ void tick_nohz_irq_exit(void)
}
/**
+ * tick_nohz_get_last_idle_length - return the length of the last idle loop
+ */
+ktime_t tick_nohz_get_last_idle_length(void)
+{
+ struct tick_sched *ts = this_cpu_ptr(&tick_cpu_sched);
+
+ return ts->idle_length;
+}
+
+/**
* tick_nohz_get_sleep_length - return the length of the current sleep
*
* Called from power state control code with interrupts disabled
diff --git a/kernel/time/tick-sched.h b/kernel/time/tick-sched.h
index 95...
2017 Nov 13
0
[PATCH RFC v3 5/6] tick: get duration of the last idle loop
...lta);
ts->idle_entrytime = now;
+ ts->idle_length = delta;
}
if (last_update_time)
@@ -998,6 +999,16 @@ void tick_nohz_irq_exit(void)
}
/**
+ * tick_nohz_get_last_idle_length - return the length of the last idle loop
+ */
+ktime_t tick_nohz_get_last_idle_length(void)
+{
+ struct tick_sched *ts = this_cpu_ptr(&tick_cpu_sched);
+
+ return ts->idle_length;
+}
+
+/**
* tick_nohz_get_sleep_length - return the length of the current sleep
*
* Called from power state control code with interrupts disabled
diff --git a/kernel/time/tick-sched.h b/kernel/time/tick-sched.h
index 95...