Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

We’re showing branches in this repository, but you can also compare across forks.

base fork: m-labs/linux-milkymist
base: 94e85eb799d3
...
head fork: m-labs/linux-milkymist
compare: e3c7b2c4ddd1
  • 2 commits
  • 2 files changed
  • 0 commit comments
  • 1 contributor
Commits on Aug 24, 2012
Lars-Peter Clausen larsclausen 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 larsclausen lm32: Remove unused init_task.c
We are using the generic init_task now.

Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
e3c7b2c
Showing with 11 additions and 67 deletions.
  1. +11 −22 arch/lm32/include/asm/cacheflush.h
  2. +0 −45 arch/lm32/kernel/init_task.c
33 arch/lm32/include/asm/cacheflush.h
View
@@ -1,28 +1,7 @@
#ifndef _ASM_LM32_CACHEFLUSH_H
#define _ASM_LM32_CACHEFLUSH_H
-#include <linux/mm.h>
-
-#define flush_cache_all() __flush_cache_all()
-#define flush_cache_mm(mm) do { } while (0)
-#define flush_cache_dup_mm(mm) do { } while (0)
-#define flush_cache_range(vma, start, end) __flush_cache_all()
-#define flush_cache_page(vma, vmaddr) do { } while (0)
-#define ARCH_IMPLEMENTS_FLUSH_DCACHE_PAGE 0
-#define flush_dcache_range(start,len) __flush_dcache_all()
-#define flush_dcache_page(page) do { } while (0)
-#define flush_dcache_mmap_lock(mapping) do { } while (0)
-#define flush_dcache_mmap_unlock(mapping) do { } while (0)
-#define flush_icache_range(start,len) __flush_icache_all()
-#define flush_icache_page(vma,pg) do { } while (0)
-#define flush_icache_user_range(vma,pg,adr,len) do { } while (0)
-#define flush_cache_vmap(start, end) do { } while (0)
-#define flush_cache_vunmap(start, end) do { } while (0)
-
-#define copy_to_user_page(vma, page, vaddr, dst, src, len) \
- memcpy(dst, src, len)
-#define copy_from_user_page(vma, page, vaddr, dst, src, len) \
- memcpy(dst, src, len)
+#include <asm-generic/cacheflush.h>
static inline void __flush_dcache_all(void)
{
@@ -49,4 +28,14 @@ static inline void __flush_cache_all(void)
__flush_icache_all();
}
+#undef flush_cache_all
+#undef flush_cache_range
+#undef flush_dcache_range
+#undef flush_icache_range
+
+#define flush_cache_all() __flush_cache_all()
+#define flush_cache_range(vma, start, end) __flush_cache_all()
+#define flush_dcache_range(start,len) __flush_dcache_all()
+#define flush_icache_range(start,len) __flush_icache_all()
+
#endif /* _ASM_LM32_CACHEFLUSH_H */
45 arch/lm32/kernel/init_task.c
View
@@ -1,45 +0,0 @@
-#include <linux/mm.h>
-#include <linux/module.h>
-#include <linux/sched.h>
-#include <linux/init_task.h>
-#include <linux/mqueue.h>
-#include <linux/hardirq.h>
-
-#include <asm/thread_info.h>
-#include <asm/uaccess.h>
-
-static struct signal_struct init_signals = INIT_SIGNALS(init_signals);
-static struct sighand_struct init_sighand = INIT_SIGHAND(init_sighand);
-
-/*
- * Initial thread structure.
- *
- * We need to make sure that this is 8192-byte aligned due to the
- * way process stacks are handled. This is done by making sure
- * the linker maps this in the .text segment right after head.S,
- * and making head.S ensure the proper alignment.
- *
- * The things we do for performance..
- */
-union thread_union init_thread_union __init_task_data =
-{
-{
- .task = &init_task,
- .exec_domain = &default_exec_domain,
- .flags = 0,
- .cpu = 0,
- .preempt_count = INIT_PREEMPT_COUNT,
- .restart_block = {
- .fn = do_no_restart_syscall,
- },
- .addr_limit = KERNEL_DS,
-}
-};
-
-/*
- * Initial task structure.
- *
- * All other task structs will be allocated on slabs in fork.c
- */
-struct task_struct init_task = INIT_TASK(init_task);
-EXPORT_SYMBOL(init_task);

No commit comments for this range

Something went wrong with that request. Please try again.