From: Florian Lohoff <flo@rfc822.org>
To: linux-mips@linux-mips.org
Subject: [patch] blast_scache nop for sc cpus without scache
Date: Sat, 25 Jun 2005 15:19:38 +0200 [thread overview]
Message-ID: <20050625131938.GA7669@paradigm.rfc822.org> (raw)
[-- Attachment #1: Type: text/plain, Size: 2031 bytes --]
Index: arch/mips/mm/c-r4k.c
===================================================================
RCS file: /scratch/local/linux-mips-cvs/linux/arch/mips/mm/c-r4k.c,v
retrieving revision 1.108
diff -u -p -r1.108 c-r4k.c
--- arch/mips/mm/c-r4k.c 25 Apr 2005 16:36:23 -0000 1.108
+++ arch/mips/mm/c-r4k.c 25 Jun 2005 13:15:55 -0000
@@ -225,6 +225,8 @@ static inline void r4k_blast_icache_setu
static void (* r4k_blast_scache_page)(unsigned long addr);
+static void blast_scache_page_nop(unsigned long page) {}
+
static inline void r4k_blast_scache_page_setup(void)
{
unsigned long sc_lsize = cpu_scache_line_size();
@@ -237,10 +239,14 @@ static inline void r4k_blast_scache_page
r4k_blast_scache_page = blast_scache64_page;
else if (sc_lsize == 128)
r4k_blast_scache_page = blast_scache128_page;
+ else
+ r4k_blast_scache_page = blast_scache_page_nop;
}
static void (* r4k_blast_scache_page_indexed)(unsigned long addr);
+static void blast_scache_page_indexed_nop(unsigned long page) {}
+
static inline void r4k_blast_scache_page_indexed_setup(void)
{
unsigned long sc_lsize = cpu_scache_line_size();
@@ -253,10 +259,14 @@ static inline void r4k_blast_scache_page
r4k_blast_scache_page_indexed = blast_scache64_page_indexed;
else if (sc_lsize == 128)
r4k_blast_scache_page_indexed = blast_scache128_page_indexed;
+ else
+ r4k_blast_scache_page_indexed = blast_scache_page_indexed_nop;
}
static void (* r4k_blast_scache)(void);
+static void blast_scache_nop(void ) {}
+
static inline void r4k_blast_scache_setup(void)
{
unsigned long sc_lsize = cpu_scache_line_size();
@@ -269,6 +279,8 @@ static inline void r4k_blast_scache_setu
r4k_blast_scache = blast_scache64;
else if (sc_lsize == 128)
r4k_blast_scache = blast_scache128;
+ else
+ r4k_blast_scache = blast_scache_nop;
}
/*
--
Florian Lohoff flo@rfc822.org +49-171-2280134
Heisenberg may have been here.
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
next reply other threads:[~2005-06-25 13:20 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-06-25 13:19 Florian Lohoff [this message]
2005-06-25 16:03 ` [patch] blast_scache nop for sc cpus without scache Ralf Baechle
2005-06-25 17:50 ` Thomas Bogendoerfer
2005-06-27 12:45 ` Maciej W. Rozycki
2005-06-27 14:36 ` Ralf Baechle
2005-06-27 15:31 ` Maciej W. Rozycki
2005-06-27 19:09 ` Thomas Bogendoerfer
2005-06-27 19:43 ` Maciej W. Rozycki
2005-06-28 7:20 ` peter fuerst
2005-06-28 9:11 ` Maciej W. Rozycki
2005-06-28 9:35 ` Stanislaw Skowronek
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=20050625131938.GA7669@paradigm.rfc822.org \
--to=flo@rfc822.org \
--cc=linux-mips@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox