diff options
author | Will Deacon <will.deacon@arm.com> | 2014-07-31 14:00:03 +0100 |
---|---|---|
committer | Will Deacon <will.deacon@arm.com> | 2014-07-31 14:00:03 +0100 |
commit | 94156675847c14a9b16e91b035da32e35e98ef79 (patch) | |
tree | b25d54657b0281f36b6585e9d52b9ab063e8405f /arch/arm64/include | |
parent | arm64: fpsimd: fix a typo in fpsimd_save_partial_state ENDPROC (diff) | |
download | linux-dev-94156675847c14a9b16e91b035da32e35e98ef79.tar.xz linux-dev-94156675847c14a9b16e91b035da32e35e98ef79.zip |
Revert "arm64: dmi: Add SMBIOS/DMI support"
This reverts commit a28e3f4b90543f7c249a956e3ca518e243a04618.
Ard and Yi Li report that this patch is broken by design, so revert it
and let them sort it out for 3.18 instead.
Reported-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Signed-off-by: Will Deacon <will.deacon@arm.com>
Diffstat (limited to 'arch/arm64/include')
-rw-r--r-- | arch/arm64/include/asm/dmi.h | 41 |
1 files changed, 0 insertions, 41 deletions
diff --git a/arch/arm64/include/asm/dmi.h b/arch/arm64/include/asm/dmi.h deleted file mode 100644 index b0882a8620e1..000000000000 --- a/arch/arm64/include/asm/dmi.h +++ /dev/null @@ -1,41 +0,0 @@ -/* - * arch/arm64/include/asm/dmi.h - * - * Copyright (C) 2013 Linaro Limited. - * Written by: Yi Li (yi.li@linaro.org) - * - * based on arch/ia64/include/asm/dmi.h - * - * This file is subject to the terms and conditions of the GNU General Public - * License. See the file "COPYING" in the main directory of this archive - * for more details. - */ - -#ifndef __ASM_DMI_H -#define __ASM_DMI_H - -#include <linux/slab.h> -#include <linux/efi.h> - -static inline void __iomem *dmi_remap(u64 phys, u64 size) -{ - void __iomem *p = efi_lookup_mapped_addr(phys); - - /* - * If the mapping spans multiple pages, do a minimal check to ensure - * that the mapping returned by efi_lookup_mapped_addr() covers the - * whole requested range (but ignore potential holes) - */ - if ((phys & ~PAGE_MASK) + size > PAGE_SIZE - && (p + size - 1) != efi_lookup_mapped_addr(phys + size - 1)) - return NULL; - return p; -} - -/* Reuse existing UEFI mappings for DMI */ -#define dmi_alloc(l) kzalloc(l, GFP_KERNEL) -#define dmi_early_remap(x, l) dmi_remap(x, l) -#define dmi_early_unmap(x, l) -#define dmi_unmap(x) - -#endif |