mm: hugetlb: fix hugepage memory leak caused by wrong reserve count
[linux/fpc-iii.git] / arch / arm64 / include / asm / dmi.h
blob69d37d87b159423c35adb5e9545d4690030e0b22
1 /*
2 * arch/arm64/include/asm/dmi.h
4 * Copyright (C) 2013 Linaro Limited.
5 * Written by: Yi Li (yi.li@linaro.org)
7 * based on arch/ia64/include/asm/dmi.h
9 * This file is subject to the terms and conditions of the GNU General Public
10 * License. See the file "COPYING" in the main directory of this archive
11 * for more details.
14 #ifndef __ASM_DMI_H
15 #define __ASM_DMI_H
17 #include <linux/io.h>
18 #include <linux/slab.h>
21 * According to section 2.3.6 of the UEFI spec, the firmware should not
22 * request a virtual mapping for configuration tables such as SMBIOS.
23 * This means we have to map them before use.
25 #define dmi_early_remap(x, l) ioremap_cache(x, l)
26 #define dmi_early_unmap(x, l) iounmap(x)
27 #define dmi_remap(x, l) ioremap_cache(x, l)
28 #define dmi_unmap(x) iounmap(x)
29 #define dmi_alloc(l) kzalloc(l, GFP_KERNEL)
31 #endif