diff options
author | Ard Biesheuvel <ard.biesheuvel@linaro.org> | 2019-06-25 16:48:35 +0300 |
---|---|---|
committer | Ard Biesheuvel <ard.biesheuvel@linaro.org> | 2019-08-08 11:01:48 +0300 |
commit | ec7e1605d79d1d469b25e396f2056e42386f512f (patch) | |
tree | 5f8ca9caeb7a703fa6104abcefb795014667a843 /arch/x86/include/asm/uv/uv.h | |
parent | e55f31a599478fb06a5a5d95e019e963322535cb (diff) | |
download | linux-ec7e1605d79d1d469b25e396f2056e42386f512f.tar.xz |
efi/x86: move UV_SYSTAB handling into arch/x86
The SGI UV UEFI machines are tightly coupled to the x86 architecture
so there is no need to keep any awareness of its existence in the
generic EFI layer, especially since we already have the infrastructure
to handle arch-specific configuration tables, and were even already
using it to some extent.
Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Diffstat (limited to 'arch/x86/include/asm/uv/uv.h')
-rw-r--r-- | arch/x86/include/asm/uv/uv.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/arch/x86/include/asm/uv/uv.h b/arch/x86/include/asm/uv/uv.h index e60c45fd3679..6bc6d89d8e2a 100644 --- a/arch/x86/include/asm/uv/uv.h +++ b/arch/x86/include/asm/uv/uv.h @@ -12,10 +12,12 @@ struct mm_struct; #ifdef CONFIG_X86_UV #include <linux/efi.h> +extern unsigned long uv_systab_phys; + extern enum uv_system_type get_uv_system_type(void); static inline bool is_early_uv_system(void) { - return !((efi.uv_systab == EFI_INVALID_TABLE_ADDR) || !efi.uv_systab); + return uv_systab_phys && uv_systab_phys != EFI_INVALID_TABLE_ADDR; } extern int is_uv_system(void); extern int is_uv_hubless(void); |