summaryrefslogtreecommitdiffstats
path: root/ipc/msgutil.c
diff options
context:
space:
mode:
authorWanpeng Li <wanpeng.li@hotmail.com>2016-04-22 11:07:24 +0200
committerIngo Molnar <mingo@kernel.org>2016-04-28 10:39:54 +0200
commit594dd290cf5403a9a5818619dfff42d8e8e0518e (patch)
tree31fa5c3c77c6c5cc293a91bd85cef310f0b988e6 /ipc/msgutil.c
parentsched/deadline: Fix a bug in dl_overflow() (diff)
downloadlinux-594dd290cf5403a9a5818619dfff42d8e8e0518e.tar.xz
linux-594dd290cf5403a9a5818619dfff42d8e8e0518e.zip
sched/cpufreq: Optimize cpufreq update kicker to avoid update multiple times
Sometimes delta_exec is 0 due to update_curr() is called multiple times, this is captured by: u64 delta_exec = rq_clock_task(rq) - curr->se.exec_start; This patch optimizes the cpufreq update kicker by bailing out when nothing changed, it will benefit the upcoming schedutil, since otherwise it will (over)react to the special util/max combination. Signed-off-by: Wanpeng Li <wanpeng.li@hotmail.com> Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Rafael J. Wysocki <rafael.j.wysocki@intel.com> Cc: Thomas Gleixner <tglx@linutronix.de> Link: http://lkml.kernel.org/r/1461316044-9520-1-git-send-email-wanpeng.li@hotmail.com Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'ipc/msgutil.c')
0 files changed, 0 insertions, 0 deletions