From: Peter Zijlstra Date: Fri, 8 May 2009 16:52:21 +0000 (+0200) Subject: perf_counter: optimize perf_counter_task_tick() X-Git-Tag: v2.6.31-rc1~383^2~294 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7fc23a5380797012e92a9633169440f2f4a21253;p=pandora-kernel.git perf_counter: optimize perf_counter_task_tick() perf_counter_task_tick() does way too much work to find out there's nothing to do. Provide an easy short-circuit for the normal case where there are no counters on the system. [ Impact: micro-optimization ] Signed-off-by: Peter Zijlstra Cc: Paul Mackerras Cc: Corey Ashford LKML-Reference: <20090508170028.750619201@chello.nl> Signed-off-by: Ingo Molnar --- Reading git-diff-tree failed