summaryrefslogtreecommitdiff
path: root/lib/psci/psci_private.h
diff options
context:
space:
mode:
authorDimitris Papastamos <dimitris.papastamos@arm.com>2018-08-03 10:53:12 +0100
committerGitHub <noreply@github.com>2018-08-03 10:53:12 +0100
commitf943ce74aee9a52fac1febfce8acaa28696e532d (patch)
tree44deac3e5a905456c5224c5ff7e274390cc4fea6 /lib/psci/psci_private.h
parent0454f64b72e3b6a2d3c2a47dead322eb528e709f (diff)
parent362030bf0679c118233fbe69fb287d8742e598ee (diff)
Merge pull request #1509 from antonio-nino-diaz-arm/an/bool
xlat: psci: Use bool instead of int
Diffstat (limited to 'lib/psci/psci_private.h')
-rw-r--r--lib/psci/psci_private.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/psci/psci_private.h b/lib/psci/psci_private.h
index 2ea9f76c..82b951db 100644
--- a/lib/psci/psci_private.h
+++ b/lib/psci/psci_private.h
@@ -14,6 +14,7 @@
#include <cpu_data.h>
#include <psci.h>
#include <spinlock.h>
+#include <stdbool.h>
/*
* The PSCI capability which are provided by the generic code but does not
@@ -93,10 +94,10 @@ static inline plat_local_state_t psci_get_cpu_local_state_by_idx(int idx)
}
/* Helper function to identify a CPU standby request in PSCI Suspend call */
-static inline int is_cpu_standby_req(unsigned int is_power_down_state,
- unsigned int retn_lvl)
+static inline bool is_cpu_standby_req(unsigned int is_power_down_state,
+ unsigned int retn_lvl)
{
- return ((is_power_down_state == 0U) && (retn_lvl == 0U)) ? 1 : 0;
+ return (is_power_down_state == 0U) && (retn_lvl == 0U);
}
/*******************************************************************************