Skip to content

Commit 3bcf25a

Browse files
swahlhpeKAGA-KOKO
authored andcommitted
x86/efi: Remove unused EFI_UV1_MEMMAP code
With UV1 support removed, EFI_UV1_MEMMAP is no longer used. Signed-off-by: Steve Wahl <[email protected]> Signed-off-by: Thomas Gleixner <[email protected]> Reviewed-by: Ard Biesheuvel <[email protected]> Link: https://lkml.kernel.org/r/[email protected]
1 parent 6aa3baa commit 3bcf25a

File tree

1 file changed

+2
-18
lines changed
  • arch/x86/include/asm

1 file changed

+2
-18
lines changed

arch/x86/include/asm/efi.h

Lines changed: 2 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -22,17 +22,7 @@ extern unsigned long efi_fw_vendor, efi_config_table;
2222
*
2323
* This is the main reason why we're doing stable VA mappings for RT
2424
* services.
25-
*
26-
* SGI UV1 machines are known to be incompatible with this scheme, so we
27-
* provide an opt-out for these machines via a DMI quirk that sets the
28-
* attribute below.
2925
*/
30-
#define EFI_UV1_MEMMAP EFI_ARCH_1
31-
32-
static inline bool efi_have_uv1_memmap(void)
33-
{
34-
return IS_ENABLED(CONFIG_X86_UV) && efi_enabled(EFI_UV1_MEMMAP);
35-
}
3626

3727
#define EFI32_LOADER_SIGNATURE "EL32"
3828
#define EFI64_LOADER_SIGNATURE "EL64"
@@ -122,19 +112,15 @@ struct efi_scratch {
122112
efi_sync_low_kernel_mappings(); \
123113
kernel_fpu_begin(); \
124114
firmware_restrict_branch_speculation_start(); \
125-
\
126-
if (!efi_have_uv1_memmap()) \
127-
efi_switch_mm(&efi_mm); \
115+
efi_switch_mm(&efi_mm); \
128116
})
129117

130118
#define arch_efi_call_virt(p, f, args...) \
131119
efi_call((void *)p->f, args) \
132120

133121
#define arch_efi_call_virt_teardown() \
134122
({ \
135-
if (!efi_have_uv1_memmap()) \
136-
efi_switch_mm(efi_scratch.prev_mm); \
137-
\
123+
efi_switch_mm(efi_scratch.prev_mm); \
138124
firmware_restrict_branch_speculation_end(); \
139125
kernel_fpu_end(); \
140126
})
@@ -176,8 +162,6 @@ extern void efi_delete_dummy_variable(void);
176162
extern void efi_switch_mm(struct mm_struct *mm);
177163
extern void efi_recover_from_page_fault(unsigned long phys_addr);
178164
extern void efi_free_boot_services(void);
179-
extern pgd_t * __init efi_uv1_memmap_phys_prolog(void);
180-
extern void __init efi_uv1_memmap_phys_epilog(pgd_t *save_pgd);
181165

182166
/* kexec external ABI */
183167
struct efi_setup_data {

0 commit comments

Comments
 (0)