From: Juan Quintela <quintela@mandrakesoft.com>
To: Ralf Baechle <ralf@linux-mips.org>, mipslist <linux-mips@linux-mips.org>
Subject: [PATCH]: c-r4k.c 4/7 flush_cache_mm cleanup
Date: Fri, 28 Mar 2003 01:52:19 +0100 [thread overview]
Message-ID: <m2smt89ut8.fsf@neno.mitica> (raw)
Hi
flush_cache_mm can use __flush_cache_all.
Later, Juan.
build/arch/mips/mm/c-r4k.c | 18 +++++-------------
1 files changed, 5 insertions(+), 13 deletions(-)
diff -puN build/arch/mips/mm/c-r4k.c~c-r4k_flush_cache_mm build/arch/mips/mm/c-r4k.c
--- 24/build/arch/mips/mm/c-r4k.c~c-r4k_flush_cache_mm 2003-03-28 00:54:48.000000000 +0100
+++ 24-quintela/build/arch/mips/mm/c-r4k.c 2003-03-28 00:57:35.000000000 +0100
@@ -255,18 +255,10 @@ static void r4k_flush_cache_range(struct
* the cache created only by a certain context, but on the MIPS
* (and actually certain Sparc's) we cannot.
*/
-static void r4k_flush_scache_mm(struct mm_struct *mm)
+static void r4k_flush_cache_mm(struct mm_struct *mm)
{
- if (cpu_context(smp_processor_id(), mm) != 0) {
- r4k_flush_scache_all();
- }
-}
-
-static void r4k_flush_pcache_mm(struct mm_struct *mm)
-{
- if (cpu_context(smp_processor_id(), mm) != 0) {
- r4k_flush_pcache_all();
- }
+ if (cpu_context(smp_processor_id(), mm) != 0)
+ __flush_cache_all();
}
static void r4k_flush_cache_page(struct vm_area_struct *vma,
@@ -709,7 +701,7 @@ static void __init setup_noscache_funcs(
}
_flush_cache_all = r4k_flush_pcache_all;
___flush_cache_all = r4k_flush_pcache_all;
- _flush_cache_mm = r4k_flush_pcache_mm;
+ _flush_cache_mm = r4k_flush_cache_mm;
_flush_cache_page = r4k_flush_cache_page;
_flush_icache_page = r4k_flush_icache_page;
_flush_cache_range = r4k_flush_cache_range;
@@ -745,7 +737,7 @@ static void __init setup_scache_funcs(vo
_flush_cache_all = r4k_flush_pcache_all;
___flush_cache_all = r4k_flush_scache_all;
- _flush_cache_mm = r4k_flush_scache_mm;
+ _flush_cache_mm = r4k_flush_cache_mm;
_flush_cache_range = r4k_flush_cache_range;
_flush_cache_page = r4k_flush_cache_page;
_flush_icache_page = r4k_flush_icache_page;
_
--
In theory, practice and theory are the same, but in practice they
are different -- Larry McVoy
next reply other threads:[~2003-03-28 0:55 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-03-28 0:52 Juan Quintela [this message]
2003-03-28 17:51 ` [PATCH]: c-r4k.c 4/7 flush_cache_mm cleanup Maciej W. Rozycki
2003-03-28 18:59 ` Ralf Baechle
2003-03-28 19:33 ` Juan Quintela
2003-03-29 14:41 ` Juan Quintela
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=m2smt89ut8.fsf@neno.mitica \
--to=quintela@mandrakesoft.com \
--cc=linux-mips@linux-mips.org \
--cc=ralf@linux-mips.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.