Browse Source

[POWERPC] boot: export flush_cache

Move the declaration of flush_cache to ops.h for use by platform code.

Signed-off-by: Milton Miller <miltonm@bga.com>
Acked-by: David Gibson <david@gibson.dropbear.id.au>
Signed-off-by: Paul Mackerras <paulus@samba.org>
Milton Miller 18 năm trước cách đây
mục cha
commit
0e6806734f
2 tập tin đã thay đổi với 1 bổ sung3 xóa
  1. 0 2
      arch/powerpc/boot/main.c
  2. 1 1
      arch/powerpc/boot/ops.h

+ 0 - 2
arch/powerpc/boot/main.c

@@ -18,8 +18,6 @@
 #include "gunzip_util.h"
 #include "flatdevtree.h"
 
-extern void flush_cache(void *, unsigned long);
-
 extern char _start[];
 extern char __bss_start[];
 extern char _end[];

+ 1 - 1
arch/powerpc/boot/ops.h

@@ -79,7 +79,7 @@ int serial_console_init(void);
 int ns16550_console_init(void *devp, struct serial_console_data *scdp);
 void *simple_alloc_init(char *base, u32 heap_size, u32 granularity,
 		u32 max_allocs);
-
+extern void flush_cache(void *, unsigned long);
 
 static inline void *finddevice(const char *name)
 {