~ubuntu-branches/debian/wheezy/linux-2.6/wheezy

« back to all changes in this revision

Viewing changes to arch/sh/include/asm/cacheflush.h

  • Committer: Bazaar Package Importer
  • Author(s): Ben Hutchings, Ben Hutchings, Aurelien Jarno, Martin Michlmayr
  • Date: 2011-04-06 13:53:30 UTC
  • mfrom: (43.1.5 sid)
  • Revision ID: james.westby@ubuntu.com-20110406135330-wjufxhd0tvn3zx4z
Tags: 2.6.38-3
[ Ben Hutchings ]
* [ppc64] Add to linux-tools package architectures (Closes: #620124)
* [amd64] Save cr4 to mmu_cr4_features at boot time (Closes: #620284)
* appletalk: Fix bugs introduced when removing use of BKL
* ALSA: Fix yet another race in disconnection
* cciss: Fix lost command issue
* ath9k: Fix kernel panic in AR2427
* ses: Avoid kernel panic when lun 0 is not mapped
* PCI/ACPI: Report ASPM support to BIOS if not disabled from command line

[ Aurelien Jarno ]
* rtlwifi: fix build when PCI is not enabled.

[ Martin Michlmayr ]
* rtlwifi: Eliminate udelay calls with too large values (Closes: #620204)

Show diffs side-by-side

added added

removed removed

Lines of Context:
42
42
                                unsigned long addr, unsigned long pfn);
43
43
extern void flush_cache_range(struct vm_area_struct *vma,
44
44
                                 unsigned long start, unsigned long end);
 
45
#define ARCH_IMPLEMENTS_FLUSH_DCACHE_PAGE 1
45
46
extern void flush_dcache_page(struct page *page);
46
47
extern void flush_icache_range(unsigned long start, unsigned long end);
47
48
extern void flush_icache_page(struct vm_area_struct *vma,
62
63
        if (boot_cpu_data.dcache.n_aliases && PageAnon(page))
63
64
                __flush_anon_page(page, vmaddr);
64
65
}
 
66
static inline void flush_kernel_vmap_range(void *addr, int size)
 
67
{
 
68
        __flush_wback_region(addr, size);
 
69
}
 
70
static inline void invalidate_kernel_vmap_range(void *addr, int size)
 
71
{
 
72
        __flush_invalidate_region(addr, size);
 
73
}
65
74
 
66
75
#define ARCH_HAS_FLUSH_KERNEL_DCACHE_PAGE
67
76
static inline void flush_kernel_dcache_page(struct page *page)
77
86
        struct page *page, unsigned long vaddr, void *dst, const void *src,
78
87
        unsigned long len);
79
88
 
80
 
#define flush_cache_vmap(start, end)            flush_cache_all()
81
 
#define flush_cache_vunmap(start, end)          flush_cache_all()
 
89
#define flush_cache_vmap(start, end)            local_flush_cache_all(NULL)
 
90
#define flush_cache_vunmap(start, end)          local_flush_cache_all(NULL)
82
91
 
83
92
#define flush_dcache_mmap_lock(mapping)         do { } while (0)
84
93
#define flush_dcache_mmap_unlock(mapping)       do { } while (0)
87
96
void *kmap_coherent(struct page *page, unsigned long addr);
88
97
void kunmap_coherent(void *kvaddr);
89
98
 
90
 
#define PG_dcache_dirty PG_arch_1
 
99
#define PG_dcache_clean PG_arch_1
91
100
 
92
101
void cpu_cache_init(void);
93
102