cpuidle: lpm-levels: convert PSCI return value to boolean correctly

LPM driver is concerned with the boolean result of the PSCI call. The
PSCI error value is not of consequence for further activity. However, it
might be helpful to know what the PSCI driver. So, let's log the return
value but use the boolean result elsewhere.

Change-Id: Ibbc674803da139aef29121d123625661e26bc75d
Signed-off-by: Lina Iyer <ilina@codeaurora.org>
This commit is contained in:
Lina Iyer 2020-03-05 13:39:08 -07:00
commit fc520c6971
2 changed files with 23 additions and 15 deletions

View file

@ -1,7 +1,7 @@
/* SPDX-License-Identifier: GPL-2.0-only */
/*
* Copyright (c) 2016-2019, The Linux Foundation. All rights reserved.
* Copyright (c) 2016-2020, The Linux Foundation. All rights reserved.
*/
#undef TRACE_SYSTEM
@ -105,13 +105,13 @@ TRACE_EVENT(cpu_idle_enter,
TRACE_EVENT(cpu_idle_exit,
TP_PROTO(int index, bool success),
TP_PROTO(int index, int success),
TP_ARGS(index, success),
TP_STRUCT__entry(
__field(int, index)
__field(bool, success)
__field(int, success)
),
TP_fast_assign(