cache.c (cbecf716ca618fd44feda6bd9a64a8179d031fc5) cache.c (f358afc52c3066f4e8cd7b3a2d75b31e822519e9)
1/*
2 * This file is subject to the terms and conditions of the GNU General Public
3 * License. See the file "COPYING" in the main directory of this archive
4 * for more details.
5 *
6 * Copyright (C) 1999-2006 Helge Deller <deller@gmx.de> (07-13-1999)
7 * Copyright (C) 1999 SuSE GmbH Nuernberg
8 * Copyright (C) 2000 Philipp Rumpf (prumpf@tux.org)

--- 320 unchanged lines hidden (view full) ---

329 unsigned long addr, old_addr = 0;
330 pgoff_t pgoff;
331
332 if (mapping && !mapping_mapped(mapping)) {
333 set_bit(PG_dcache_dirty, &page->flags);
334 return;
335 }
336
1/*
2 * This file is subject to the terms and conditions of the GNU General Public
3 * License. See the file "COPYING" in the main directory of this archive
4 * for more details.
5 *
6 * Copyright (C) 1999-2006 Helge Deller <deller@gmx.de> (07-13-1999)
7 * Copyright (C) 1999 SuSE GmbH Nuernberg
8 * Copyright (C) 2000 Philipp Rumpf (prumpf@tux.org)

--- 320 unchanged lines hidden (view full) ---

329 unsigned long addr, old_addr = 0;
330 pgoff_t pgoff;
331
332 if (mapping && !mapping_mapped(mapping)) {
333 set_bit(PG_dcache_dirty, &page->flags);
334 return;
335 }
336
337 flush_kernel_dcache_page(page);
337 flush_kernel_dcache_page_addr(page_address(page));
338
339 if (!mapping)
340 return;
341
342 pgoff = page->index;
343
344 /* We have carefully arranged in arch_get_unmapped_area() that
345 * *any* mappings of a file are always congruently mapped (whether

--- 24 unchanged lines hidden (view full) ---

370 }
371 }
372 flush_dcache_mmap_unlock(mapping);
373}
374EXPORT_SYMBOL(flush_dcache_page);
375
376/* Defined in arch/parisc/kernel/pacache.S */
377EXPORT_SYMBOL(flush_kernel_dcache_range_asm);
338
339 if (!mapping)
340 return;
341
342 pgoff = page->index;
343
344 /* We have carefully arranged in arch_get_unmapped_area() that
345 * *any* mappings of a file are always congruently mapped (whether

--- 24 unchanged lines hidden (view full) ---

370 }
371 }
372 flush_dcache_mmap_unlock(mapping);
373}
374EXPORT_SYMBOL(flush_dcache_page);
375
376/* Defined in arch/parisc/kernel/pacache.S */
377EXPORT_SYMBOL(flush_kernel_dcache_range_asm);
378EXPORT_SYMBOL(flush_kernel_dcache_page_asm);
379EXPORT_SYMBOL(flush_data_cache_local);
380EXPORT_SYMBOL(flush_kernel_icache_range_asm);
381
382#define FLUSH_THRESHOLD 0x80000 /* 0.5MB */
383static unsigned long parisc_cache_flush_threshold __ro_after_init = FLUSH_THRESHOLD;
384
385#define FLUSH_TLB_THRESHOLD (16*1024) /* 16 KiB minimum TLB threshold */
386static unsigned long parisc_tlb_flush_threshold __ro_after_init = ~0UL;

--- 294 unchanged lines hidden ---
378EXPORT_SYMBOL(flush_data_cache_local);
379EXPORT_SYMBOL(flush_kernel_icache_range_asm);
380
381#define FLUSH_THRESHOLD 0x80000 /* 0.5MB */
382static unsigned long parisc_cache_flush_threshold __ro_after_init = FLUSH_THRESHOLD;
383
384#define FLUSH_TLB_THRESHOLD (16*1024) /* 16 KiB minimum TLB threshold */
385static unsigned long parisc_tlb_flush_threshold __ro_after_init = ~0UL;

--- 294 unchanged lines hidden ---