diff options
author | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2019-11-13 01:10:13 +0100 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2019-11-15 00:54:33 +0100 |
commit | 85f6a17f24f9f7faa4aaecf98e12acdd312aa4c9 (patch) | |
tree | 7cb34ee94de71a1536af0f3f12d05e7dfbd67430 /kernel/sched | |
parent | cpuidle: teo: Avoid using "early hits" incorrectly (diff) | |
download | linux-85f6a17f24f9f7faa4aaecf98e12acdd312aa4c9.tar.xz linux-85f6a17f24f9f7faa4aaecf98e12acdd312aa4c9.zip |
cpuidle: teo: Avoid code duplication in conditionals
There are three places in teo_select() where a given amount of time
is compared with TICK_NSEC if tick_nohz_tick_stopped() returns true,
which is a bit of duplicated code.
Avoid that code duplication by defining a helper function to do the
check and using it in all of the places in question.
No intentional functional impact.
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'kernel/sched')
0 files changed, 0 insertions, 0 deletions