Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: m-labs/linux-milkymist
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 94e85eb799d3
Choose a base ref
...
head repository: m-labs/linux-milkymist
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: e3c7b2c4ddd1
Choose a head ref
  • 2 commits
  • 2 files changed
  • 1 contributor

Commits on Aug 24, 2012

  1. lm32: cacheflush.h: Reuse asm-generic/cacheflush.h

    Reuse parts of asm-generic/cacheflush.h
    
    Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
    larsclausen committed Aug 24, 2012
    Copy the full SHA
    147dafb View commit details
  2. lm32: Remove unused init_task.c

    We are using the generic init_task now.
    
    Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
    larsclausen committed Aug 24, 2012
    Copy the full SHA
    e3c7b2c View commit details
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 changes: 11 additions & 22 deletions arch/lm32/include/asm/cacheflush.h
Original file line number Diff line number Diff line change
@@ -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 changes: 0 additions & 45 deletions arch/lm32/kernel/init_task.c

This file was deleted.