diff options
author | Mark Rutland <[email protected]> | 2015-04-20 14:51:00 +0100 |
---|---|---|
committer | Mark Rutland <[email protected]> | 2015-05-27 13:22:02 +0100 |
commit | a06eed3e90c272675f2ef50f5bc5b3ec91652d77 (patch) | |
tree | f497d099c7422369f8eee6e32fb4a8aefec0a2d1 /tools/perf/scripts/python | |
parent | 2a7cd0ebfc0a5ac2e692e63871e0ff6a50d5de46 (diff) |
arm64: psci: support unsigned return values
PSCI_VERSION and MIGRATE_INFO_TYPE_UP_CPU return unsigned values, with
the latter returning a 64-bit value. However, the PSCI invocation
functions have prototypes returning int.
This patch upgrades the invocation functions to return unsigned long,
with a new typedef to keep things legible. As PSCI_VERSION cannot return
a negative value, the erroneous check against PSCI_RET_NOT_SUPPORTED is
also removed. The unrelated psci_initcall_t typedef is moved closer to
its first user, to avoid confusion with the invocation functions.
In preparation for sharing the code with ARM, unsigned long is used in
preference of u64. In the SMC32 calling convention, the relevant fields
will be 32 bits wide.
Signed-off-by: Mark Rutland <[email protected]>
Acked-by: Catalin Marinas <[email protected]>
Reviewed-by: Hanjun Guo <[email protected]>
Tested-by: Hanjun Guo <[email protected]>
Cc: Lorenzo Pieralisi <[email protected]>
Cc: Will Deacon <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions