All of lore.kernel.org
 help / color / mirror / Atom feed
* [patch] blast_scache nop for sc cpus without scache
@ 2005-06-25 13:19 Florian Lohoff
  2005-06-25 16:03 ` Ralf Baechle
  0 siblings, 1 reply; 11+ messages in thread
From: Florian Lohoff @ 2005-06-25 13:19 UTC (permalink / raw)
  To: linux-mips

[-- 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 --]

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2005-06-28  9:36 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-06-25 13:19 [patch] blast_scache nop for sc cpus without scache Florian Lohoff
2005-06-25 16:03 ` 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

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.