Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
  • 2 commits
  • 2 files changed
  • 0 comments
  • 1 contributor
Aug 24, 2012
Lars-Peter Clausen lm32: cacheflush.h: Reuse asm-generic/cacheflush.h
Reuse parts of asm-generic/cacheflush.h

Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
147dafb
Lars-Peter Clausen lm32: Remove unused init_task.c
We are using the generic init_task now.

Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
e3c7b2c
33  arch/lm32/include/asm/cacheflush.h
... ...
@@ -1,28 +1,7 @@
1 1
 #ifndef _ASM_LM32_CACHEFLUSH_H
2 2
 #define _ASM_LM32_CACHEFLUSH_H
3 3
 
4  
-#include <linux/mm.h>
5  
-
6  
-#define flush_cache_all()			__flush_cache_all()
7  
-#define flush_cache_mm(mm)			do { } while (0)
8  
-#define flush_cache_dup_mm(mm)			do { } while (0)
9  
-#define flush_cache_range(vma, start, end)	__flush_cache_all()
10  
-#define flush_cache_page(vma, vmaddr)		do { } while (0)
11  
-#define ARCH_IMPLEMENTS_FLUSH_DCACHE_PAGE 0
12  
-#define flush_dcache_range(start,len)		__flush_dcache_all()
13  
-#define flush_dcache_page(page)			do { } while (0)
14  
-#define flush_dcache_mmap_lock(mapping)		do { } while (0)
15  
-#define flush_dcache_mmap_unlock(mapping)	do { } while (0)
16  
-#define flush_icache_range(start,len)		__flush_icache_all()
17  
-#define flush_icache_page(vma,pg)		do { } while (0)
18  
-#define flush_icache_user_range(vma,pg,adr,len) do { } while (0)
19  
-#define flush_cache_vmap(start, end)		do { } while (0)
20  
-#define flush_cache_vunmap(start, end)		do { } while (0)
21  
-
22  
-#define copy_to_user_page(vma, page, vaddr, dst, src, len) \
23  
-	memcpy(dst, src, len)
24  
-#define copy_from_user_page(vma, page, vaddr, dst, src, len) \
25  
-	memcpy(dst, src, len)
  4
+#include <asm-generic/cacheflush.h>
26 5
 
27 6
 static inline void __flush_dcache_all(void)
28 7
 {
@@ -49,4 +28,14 @@ static inline void __flush_cache_all(void)
49 28
 	__flush_icache_all();
50 29
 }
51 30
 
  31
+#undef flush_cache_all
  32
+#undef flush_cache_range
  33
+#undef flush_dcache_range
  34
+#undef flush_icache_range
  35
+
  36
+#define flush_cache_all()			__flush_cache_all()
  37
+#define flush_cache_range(vma, start, end)	__flush_cache_all()
  38
+#define flush_dcache_range(start,len)		__flush_dcache_all()
  39
+#define flush_icache_range(start,len)		__flush_icache_all()
  40
+
52 41
 #endif /* _ASM_LM32_CACHEFLUSH_H */
45  arch/lm32/kernel/init_task.c
... ...
@@ -1,45 +0,0 @@
1  
-#include <linux/mm.h>
2  
-#include <linux/module.h>
3  
-#include <linux/sched.h>
4  
-#include <linux/init_task.h>
5  
-#include <linux/mqueue.h>
6  
-#include <linux/hardirq.h>
7  
-
8  
-#include <asm/thread_info.h>
9  
-#include <asm/uaccess.h>
10  
-
11  
-static struct signal_struct init_signals = INIT_SIGNALS(init_signals);
12  
-static struct sighand_struct init_sighand = INIT_SIGHAND(init_sighand);
13  
-
14  
-/*
15  
- * Initial thread structure.
16  
- *
17  
- * We need to make sure that this is 8192-byte aligned due to the
18  
- * way process stacks are handled. This is done by making sure
19  
- * the linker maps this in the .text segment right after head.S,
20  
- * and making head.S ensure the proper alignment.
21  
- *
22  
- * The things we do for performance..
23  
- */
24  
-union thread_union init_thread_union __init_task_data =
25  
-{
26  
-{
27  
-	.task =		&init_task,
28  
-	.exec_domain =	&default_exec_domain,
29  
-	.flags =	0,
30  
-	.cpu =		0,
31  
-	.preempt_count = INIT_PREEMPT_COUNT,
32  
-	.restart_block	= {
33  
-		.fn = do_no_restart_syscall,
34  
-	},
35  
-	.addr_limit = KERNEL_DS,
36  
-}
37  
-};
38  
-
39  
-/*
40  
- * Initial task structure.
41  
- *
42  
- * All other task structs will be allocated on slabs in fork.c
43  
- */
44  
-struct task_struct init_task = INIT_TASK(init_task);
45  
-EXPORT_SYMBOL(init_task);

No commit comments for this range

Something went wrong with that request. Please try again.