cpuidle: poll_state: Fix default time limit
authorDoug Smythies <doug.smythies@gmail.com>
Wed, 30 Jan 2019 16:28:22 +0000 (08:28 -0800)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Wed, 30 Jan 2019 21:57:42 +0000 (22:57 +0100)
commit1617971c6616c87185cbc78fa1a86dfc70dd16b6
tree6d4193af95c5cb6703ecef6f140d7d3053983d36
parentf17b5f06cb92ef2250513a1e154c47b78df07d40
cpuidle: poll_state: Fix default time limit

The default time is declared in units of microsecnds,
but is used as nanoseconds, resulting in significant
accounting errors for idle state 0 time when all idle
states deeper than 0 are disabled.

Under these unusual conditions, we don't really care
about the poll time limit anyhow.

Fixes: 800fb34a99ce ("cpuidle: poll_state: Disregard disable idle states")
Signed-off-by: Doug Smythies <dsmythies@telus.net>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/cpuidle/poll_state.c