Displaying 2 results from an estimated 2 matches for "idle_sleeptim".
Did you mean:
idle_sleeptime
2017 Nov 13
0
[PATCH RFC v3 5/6] tick: get duration of the last idle loop
...get_sleep_length(void)
{
return NSEC_PER_SEC / HZ;
diff --git a/kernel/time/tick-sched.c b/kernel/time/tick-sched.c
index c7a899c..65c9cc0 100644
--- a/kernel/time/tick-sched.c
+++ b/kernel/time/tick-sched.c
@@ -548,6 +548,7 @@ static void tick_nohz_update_jiffies(ktime_t now)
else
ts->idle_sleeptime = ktime_add(ts->idle_sleeptime, delta);
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_...
2017 Nov 13
0
[PATCH RFC v3 5/6] tick: get duration of the last idle loop
...get_sleep_length(void)
{
return NSEC_PER_SEC / HZ;
diff --git a/kernel/time/tick-sched.c b/kernel/time/tick-sched.c
index c7a899c..65c9cc0 100644
--- a/kernel/time/tick-sched.c
+++ b/kernel/time/tick-sched.c
@@ -548,6 +548,7 @@ static void tick_nohz_update_jiffies(ktime_t now)
else
ts->idle_sleeptime = ktime_add(ts->idle_sleeptime, delta);
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_...