aboutsummaryrefslogtreecommitdiff
path: root/arch/parisc
diff options
context:
space:
mode:
authorMark Rutland <mark.rutland@arm.com>2015-04-20 14:51:00 +0100
committerAlex Shi <alex.shi@linaro.org>2016-01-20 11:08:56 +0800
commite0ba65ac25ae08070b3edb7e7ad84f3a22bd691f (patch)
tree0481dd547c5b7797a75caf487b58bc316f558c05 /arch/parisc
parentfb92c39cc4ff1efb5d6ad229c6977e1a9f2320cf (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 <mark.rutland@arm.com> Acked-by: Catalin Marinas <catalin.marinas@arm.com> Reviewed-by: Hanjun Guo <hanjun.guo@linaro.org> Tested-by: Hanjun Guo <hanjun.guo@linaro.org> Cc: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com> Cc: Will Deacon <will.deacon@arm.com> (cherry picked from commit a06eed3e90c272675f2ef50f5bc5b3ec91652d77) Signed-off-by: Alex Shi <alex.shi@linaro.org>
Diffstat (limited to 'arch/parisc')
0 files changed, 0 insertions, 0 deletions