Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 309023
b: refs/heads/master
c: 9cd9669
h: refs/heads/master
i:
  309021: 3ad5520
  309019: 8679009
  309015: 57f95cb
  309007: 485ab39
  308991: 0cc79fc
v: v3
  • Loading branch information
David Daney authored and Ralf Baechle committed May 16, 2012
1 parent 43b681f commit 9d58db2
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 586016ebf76d62e58a0e9dfd971e465c8027889d
refs/heads/master: 9cd9669bd60ee41d34d1b41d7a0b884806939d7b
14 changes: 10 additions & 4 deletions trunk/arch/mips/mm/c-r4k.c
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
#include <asm/mmu_context.h>
#include <asm/war.h>
#include <asm/cacheflush.h> /* for run_uncached() */

#include <asm/traps.h>

/*
* Special Variant of smp_call_function for use by cache functions:
Expand Down Expand Up @@ -1385,10 +1385,8 @@ static int __init setcoherentio(char *str)
__setup("coherentio", setcoherentio);
#endif

void __cpuinit r4k_cache_init(void)
static void __cpuinit r4k_cache_error_setup(void)
{
extern void build_clear_page(void);
extern void build_copy_page(void);
extern char __weak except_vec2_generic;
extern char __weak except_vec2_sb1;
struct cpuinfo_mips *c = &current_cpu_data;
Expand All @@ -1403,6 +1401,13 @@ void __cpuinit r4k_cache_init(void)
set_uncached_handler(0x100, &except_vec2_generic, 0x80);
break;
}
}

void __cpuinit r4k_cache_init(void)
{
extern void build_clear_page(void);
extern void build_copy_page(void);
struct cpuinfo_mips *c = &current_cpu_data;

probe_pcache();
setup_scache();
Expand Down Expand Up @@ -1465,4 +1470,5 @@ void __cpuinit r4k_cache_init(void)
local_r4k___flush_cache_all(NULL);
#endif
coherency_setup();
board_cache_error_setup = r4k_cache_error_setup;
}

0 comments on commit 9d58db2

Please sign in to comment.