[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-arm] [PATCH] [RFT] target/arm/arm-powerctl: Fix psci info return v
From: |
Andrew Jones |
Subject: |
[Qemu-arm] [PATCH] [RFT] target/arm/arm-powerctl: Fix psci info return values |
Date: |
Fri, 3 Mar 2017 13:32:32 +0100 |
The power state spec section 5.1.5 AFFINITY_INFO defines the
affinity info return values as
0 ON
1 OFF
2 ON_PENDING
I grepped QEMU for power_state to ensure that no assumptions
of OFF=0 were being made.
Signed-off-by: Andrew Jones <address@hidden>
---
I found this with the yet to be committed kvm-unit-tests test
https://lists.cs.columbia.edu/pipermail/kvmarm/2017-February/023820.html
I've added the RFT because I didn't bother to confirm Linux is still
happy (although I can't see why it wouldn't be happier).
target/arm/cpu.h | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/target/arm/cpu.h b/target/arm/cpu.h
index 25ceaabb5ded..a8aabce7ddd5 100644
--- a/target/arm/cpu.h
+++ b/target/arm/cpu.h
@@ -536,8 +536,8 @@ typedef void ARMELChangeHook(ARMCPU *cpu, void *opaque);
/* These values map onto the return values for
* QEMU_PSCI_0_2_FN_AFFINITY_INFO */
typedef enum ARMPSCIState {
- PSCI_OFF = 0,
- PSCI_ON = 1,
+ PSCI_ON = 0,
+ PSCI_OFF = 1,
PSCI_ON_PENDING = 2
} ARMPSCIState;
--
2.9.3
- [Qemu-arm] [PATCH] [RFT] target/arm/arm-powerctl: Fix psci info return values,
Andrew Jones <=