]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit
cpufreq: stats: Mark few conditionals with unlikely()
authorViresh Kumar <viresh.kumar@linaro.org>
Mon, 5 Oct 2020 07:56:03 +0000 (13:26 +0530)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Mon, 5 Oct 2020 13:13:43 +0000 (15:13 +0200)
commit4958b46efb6df20fa3abb3a4d007515485f6af16
tree9dd9db7d96a3386475e7309344b8bbc45bb6503e
parent381abb942a392377f614b62c87692f4f2e8aa59b
cpufreq: stats: Mark few conditionals with unlikely()

Since this will be part of the scheduler's hotpath in some cases, use
unlikely() for few of the obvious conditionals.

Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/cpufreq/cpufreq_stats.c