diff options
author | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2019-11-13 03:10:13 +0300 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2019-11-15 02:54:33 +0300 |
commit | 85f6a17f24f9f7faa4aaecf98e12acdd312aa4c9 (patch) | |
tree | 7cb34ee94de71a1536af0f3f12d05e7dfbd67430 /drivers/media | |
parent | 63f202e5edf161c2ccffa286a9a701e995427b15 (diff) | |
download | linux-85f6a17f24f9f7faa4aaecf98e12acdd312aa4c9.tar.xz |
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 'drivers/media')
0 files changed, 0 insertions, 0 deletions