OSDN Git Service

kernel: add platform_has() infrastructure
authorJuergen Gross <jgross@suse.com>
Thu, 2 Jun 2022 13:05:26 +0000 (15:05 +0200)
committerJuergen Gross <jgross@suse.com>
Mon, 6 Jun 2022 06:06:00 +0000 (08:06 +0200)
commit2130a790ca49763f724ec45cf93b9dd765e2023e
treebcb5b510df4a6c9ab4d1f8dc1f4b0eb0831f7161
parentf2906aa863381afb0015a9eb7fefad885d4e5a56
kernel: add platform_has() infrastructure

Add a simple infrastructure for setting, resetting and querying
platform feature flags.

Flags can be either global or architecture specific.

Signed-off-by: Juergen Gross <jgross@suse.com>
Reviewed-by: Oleksandr Tyshchenko <oleksandr_tyshchenko@epam.com>
Tested-by: Oleksandr Tyshchenko <oleksandr_tyshchenko@epam.com> # Arm64 only
Reviewed-by: Christoph Hellwig <hch@lst.de>
Acked-by: Borislav Petkov <bp@suse.de>
Signed-off-by: Juergen Gross <jgross@suse.com>
MAINTAINERS
include/asm-generic/Kbuild
include/asm-generic/platform-feature.h [new file with mode: 0644]
include/linux/platform-feature.h [new file with mode: 0644]
kernel/Makefile
kernel/platform-feature.c [new file with mode: 0644]