Re: [PATCH v3 1/6] measure exec_clock for rt sched entities

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 05/30/2012 02:42 PM, Peter Zijlstra wrote:
On Wed, 2012-05-30 at 14:32 +0400, Glauber Costa wrote:
+    for_each_sched_rt_entity(rt_se) {
+            rt_rq = rt_rq_of_se(rt_se);
+            schedstat_add(rt_rq, exec_clock, delta_exec);
+    }
+
      if (!rt_bandwidth_enabled())
              return;

See, this just makes me sad.. you now have a double
for_each_sched_rt_entity() loop.

The way I read the rt.c code, it it is called from enqueue_task_rt only
once.

Ah, what I meant was, right after that !rt_bandwidth_enabled() muck we
do another for_each_sched_rt_entity() walk.
I guess I can fold it there...

--
To unsubscribe from this list: send the line "unsubscribe cgroups" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]     [Monitors]

  Powered by Linux