소스 검색

x86: Move sysinfo related to sysinfo.h

coreboot_tables.h should not include sysinfo related stuff.
Move those to asm/arch-coreboot/sysinfo.h.

Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Bin Meng 9 년 전
부모
커밋
1329020d21
2개의 변경된 파일2개의 추가작업 그리고 4개의 파일을 삭제
  1. 2 0
      arch/x86/include/asm/arch-coreboot/sysinfo.h
  2. 0 4
      arch/x86/include/asm/coreboot_tables.h

+ 2 - 0
arch/x86/include/asm/arch-coreboot/sysinfo.h

@@ -56,4 +56,6 @@ struct sysinfo_t {
 
 extern struct sysinfo_t lib_sysinfo;
 
+int get_coreboot_info(struct sysinfo_t *info);
+
 #endif

+ 0 - 4
arch/x86/include/asm/coreboot_tables.h

@@ -262,10 +262,6 @@ struct	cb_cmos_checksum {
 #define UNPACK_CB64(_in) \
 	((((u64) _in.hi) << 32) | _in.lo)
 
-struct sysinfo_t;
-
-int get_coreboot_info(struct sysinfo_t *info);
-
 #define CBMEM_TOC_RESERVED      512
 #define MAX_CBMEM_ENTRIES       16
 #define CBMEM_MAGIC             0x434f5245