Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 204527
b: refs/heads/master
c: 4483b15
h: refs/heads/master
i:
  204525: 6f82e0f
  204523: 4ced533
  204519: 7d07561
  204511: 841de97
v: v3
  • Loading branch information
Ralf Baechle committed Aug 5, 2010
1 parent 35cfe89 commit 2f06b95
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 12 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: ea7a8463be6b5dd824bdf42b8f2af1d34f157877
refs/heads/master: 4483b159168d3db41458925512523e44d0d49cd4
6 changes: 1 addition & 5 deletions trunk/arch/mips/cavium-octeon/cpu.c
Original file line number Diff line number Diff line change
Expand Up @@ -41,12 +41,8 @@ static int cnmips_cu2_call(struct notifier_block *nfb, unsigned long action,
return NOTIFY_OK; /* Let default notifier send signals */
}

static struct notifier_block cnmips_cu2_notifier = {
.notifier_call = cnmips_cu2_call,
};

static int cnmips_cu2_setup(void)
{
return register_cu2_notifier(&cnmips_cu2_notifier);
return cu2_notifier(cnmips_cu2_call, 0);
}
early_initcall(cnmips_cu2_setup);
12 changes: 12 additions & 0 deletions trunk/arch/mips/include/asm/cop2.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@
#ifndef __ASM_COP2_H
#define __ASM_COP2_H

#include <linux/notifier.h>

enum cu2_ops {
CU2_EXCEPTION,
CU2_LWC2_OP,
Expand All @@ -20,4 +22,14 @@ enum cu2_ops {
extern int register_cu2_notifier(struct notifier_block *nb);
extern int cu2_notifier_call_chain(unsigned long val, void *v);

#define cu2_notifier(fn, pri) \
({ \
static struct notifier_block fn##_nb __cpuinitdata = { \
.notifier_call = fn, \
.priority = pri \
}; \
\
register_cu2_notifier(&fn##_nb); \
})

#endif /* __ASM_COP2_H */
7 changes: 1 addition & 6 deletions trunk/arch/mips/kernel/traps.c
Original file line number Diff line number Diff line change
Expand Up @@ -907,11 +907,6 @@ static int default_cu2_call(struct notifier_block *nfb, unsigned long action,
return NOTIFY_OK;
}

static struct notifier_block default_cu2_notifier = {
.notifier_call = default_cu2_call,
.priority = 0x80000000, /* Run last */
};

asmlinkage void do_cpu(struct pt_regs *regs)
{
unsigned int __user *epc;
Expand Down Expand Up @@ -1734,5 +1729,5 @@ void __init trap_init(void)

sort_extable(__start___dbe_table, __stop___dbe_table);

register_cu2_notifier(&default_cu2_notifier);
cu2_notifier(default_cu2_call, 0x80000000); /* Run last */
}

0 comments on commit 2f06b95

Please sign in to comment.