|
@@ -383,9 +383,9 @@ static int powernv_add_idle_states(void)
|
|
* Firmware passes residency and latency values in ns.
|
|
* Firmware passes residency and latency values in ns.
|
|
* cpuidle expects it in us.
|
|
* cpuidle expects it in us.
|
|
*/
|
|
*/
|
|
- exit_latency = latency_ns[i] / 1000;
|
|
|
|
|
|
+ exit_latency = DIV_ROUND_UP(latency_ns[i], 1000);
|
|
if (!rc)
|
|
if (!rc)
|
|
- target_residency = residency_ns[i] / 1000;
|
|
|
|
|
|
+ target_residency = DIV_ROUND_UP(residency_ns[i], 1000);
|
|
else
|
|
else
|
|
target_residency = 0;
|
|
target_residency = 0;
|
|
|
|
|