git: 7d0b91591966 - main - Add PSCI affinity info return values
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 16 Mar 2023 13:17:13 UTC
The branch main has been updated by andrew:
URL: https://cgit.FreeBSD.org/src/commit/?id=7d0b915919665cb43107b36ad103791515eade5b
commit 7d0b915919665cb43107b36ad103791515eade5b
Author: Andrew Turner <andrew@FreeBSD.org>
AuthorDate: 2023-03-16 12:16:59 +0000
Commit: Andrew Turner <andrew@FreeBSD.org>
CommitDate: 2023-03-16 13:08:00 +0000
Add PSCI affinity info return values
These can be returned from the PSCI AFFINITY_INFO call. This is not
marked as optional so bhyve will need to implement it & can use these
macros.
Sponsored by: Arm Ltd
---
sys/dev/psci/psci.h | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/sys/dev/psci/psci.h b/sys/dev/psci/psci.h
index 671f082bb119..207158b417ab 100644
--- a/sys/dev/psci/psci.h
+++ b/sys/dev/psci/psci.h
@@ -105,6 +105,10 @@ psci_call(register_t a, register_t b, register_t c, register_t d)
#define PSCI_VER_MINOR(v) ((v) & 0xFF)
#define PSCI_VER(maj, min) (((maj) << 16) | (min))
+#define PSCI_AFFINITY_INFO_ON 0
+#define PSCI_AFFINITY_INFO_OFF 1
+#define PSCI_AFFINITY_INFO_ON_PENDING 2
+
#ifdef _KERNEL
enum psci_fn {
PSCI_FN_VERSION,