Commit e2f39c9f authored by Heiko Carstens's avatar Heiko Carstens Committed by Alexander Gordeev
Browse files

s390/cpufeature: allow for facility bits

parent 0a5f9b38
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -9,6 +9,7 @@

enum {
	TYPE_HWCAP,
	TYPE_FACILITY,
};

struct s390_cpu_feature {
@@ -34,6 +35,8 @@ int cpu_have_feature(unsigned int num)
	switch (feature->type) {
	case TYPE_HWCAP:
		return !!(elf_hwcap & BIT(feature->num));
	case TYPE_FACILITY:
		return test_facility(feature->num);
	default:
		WARN_ON_ONCE(1);
		return 0;