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

« back to all changes in this revision

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

  • Committer: Bazaar Package Importer
  • Author(s): Ben Hutchings, Ben Hutchings, Aurelien Jarno
  • Date: 2011-06-07 12:14:05 UTC
  • mfrom: (43.1.9 sid)
  • Revision ID: james.westby@ubuntu.com-20110607121405-i3h1rd7nrnd2b73h
Tags: 2.6.39-2
[ Ben Hutchings ]
* [x86] Enable BACKLIGHT_APPLE, replacing BACKLIGHT_MBP_NVIDIA
  (Closes: #627492)
* cgroups: Disable memory resource controller by default. Allow it
  to be enabled using kernel parameter 'cgroup_enable=memory'.
* rt2800usb: Enable support for more USB devices including
  Linksys WUSB600N (Closes: #596626) (this change was accidentally
  omitted from 2.6.39-1)
* [x86] Remove Celeron from list of processors supporting PAE. Most
  'Celeron M' models do not.
* Update debconf template translations:
  - Swedish (Martin Bagge) (Closes: #628932)
  - French (David Prévot) (Closes: #628191)
* aufs: Update for 2.6.39 (Closes: #627837)
* Add stable 2.6.39.1, including:
  - ext4: dont set PageUptodate in ext4_end_bio()
  - pata_cmd64x: fix boot crash on parisc (Closes: #622997, #622745)
  - ext3: Fix fs corruption when make_indexed_dir() fails
  - netfilter: nf_ct_sip: validate Content-Length in TCP SIP messages
  - sctp: fix race between sctp_bind_addr_free() and
    sctp_bind_addr_conflict()
  - sctp: fix memory leak of the ASCONF queue when free asoc
  - md/bitmap: fix saving of events_cleared and other state
  - cdc_acm: Fix oops when Droids MuIn LCD is connected
  - cx88: Fix conversion from BKL to fine-grained locks (Closes: #619827)
  - keys: Set cred->user_ns in key_replace_session_keyring (CVE-2011-2184)
  - tmpfs: fix race between truncate and writepage
  - nfs41: Correct offset for LAYOUTCOMMIT
  - xen/mmu: fix a race window causing leave_mm BUG()
  - ext4: fix possible use-after-free in ext4_remove_li_request()
  For the complete list of changes, see:
   http://www.kernel.org/pub/linux/kernel/v2.6/ChangeLog-2.6.39.1
* Bump ABI to 2
* netfilter: Enable IP_SET, IP_SET_BITMAP_IP, IP_SET_BITMAP_IPMAC,
  IP_SET_BITMAP_PORT, IP_SET_HASH_IP, IP_SET_HASH_IPPORT,
  IP_SET_HASH_IPPORTIP, IP_SET_HASH_IPPORTNET, IP_SET_HASH_NET,
  IP_SET_HASH_NETPORT, IP_SET_LIST_SET, NETFILTER_XT_SET as modules
  (Closes: #629401)

[ Aurelien Jarno ]
* [mipsel/loongson-2f] Disable_SCSI_LPFC to workaround GCC ICE.

Show diffs side-by-side

added added

removed removed

Lines of Context:
26
26
void flush_kernel_dcache_range_asm(unsigned long, unsigned long);
27
27
void flush_kernel_dcache_page_asm(void *);
28
28
void flush_kernel_icache_page(void *);
29
 
void flush_user_dcache_page(unsigned long);
30
 
void flush_user_icache_page(unsigned long);
31
29
void flush_user_dcache_range(unsigned long, unsigned long);
32
30
void flush_user_icache_range(unsigned long, unsigned long);
33
31
 
37
35
void flush_cache_all(void);
38
36
void flush_cache_mm(struct mm_struct *mm);
39
37
 
 
38
#define ARCH_HAS_FLUSH_KERNEL_DCACHE_PAGE
 
39
void flush_kernel_dcache_page_addr(void *addr);
 
40
static inline void flush_kernel_dcache_page(struct page *page)
 
41
{
 
42
        flush_kernel_dcache_page_addr(page_address(page));
 
43
}
 
44
 
40
45
#define flush_kernel_dcache_range(start,size) \
41
46
        flush_kernel_dcache_range_asm((start), (start)+(size));
42
47
/* vmap range flushes and invalidates.  Architecturally, we don't need
50
55
}
51
56
static inline void invalidate_kernel_vmap_range(void *vaddr, int size)
52
57
{
 
58
        unsigned long start = (unsigned long)vaddr;
 
59
        void *cursor = vaddr;
 
60
 
 
61
        for ( ; cursor < vaddr + size; cursor += PAGE_SIZE) {
 
62
                struct page *page = vmalloc_to_page(cursor);
 
63
 
 
64
                if (test_and_clear_bit(PG_dcache_dirty, &page->flags))
 
65
                        flush_kernel_dcache_page(page);
 
66
        }
 
67
        flush_kernel_dcache_range_asm(start, start + size);
53
68
}
54
69
 
55
70
#define flush_cache_vmap(start, end)            flush_cache_all()
90
105
void flush_cache_range(struct vm_area_struct *vma,
91
106
                unsigned long start, unsigned long end);
92
107
 
 
108
/* defined in pacache.S exported in cache.c used by flush_anon_page */
 
109
void flush_dcache_page_asm(unsigned long phys_addr, unsigned long vaddr);
 
110
 
93
111
#define ARCH_HAS_FLUSH_ANON_PAGE
94
112
static inline void
95
113
flush_anon_page(struct vm_area_struct *vma, struct page *page, unsigned long vmaddr)
96
114
{
97
115
        if (PageAnon(page))
98
 
                flush_user_dcache_page(vmaddr);
99
 
}
100
 
 
101
 
#define ARCH_HAS_FLUSH_KERNEL_DCACHE_PAGE
102
 
void flush_kernel_dcache_page_addr(void *addr);
103
 
static inline void flush_kernel_dcache_page(struct page *page)
104
 
{
105
 
        flush_kernel_dcache_page_addr(page_address(page));
 
116
                flush_dcache_page_asm(page_to_phys(page), vmaddr);
106
117
}
107
118
 
108
119
#ifdef CONFIG_DEBUG_RODATA