Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 149667
b: refs/heads/master
c: 92e02a5
h: refs/heads/master
i:
  149665: 73e41c0
  149663: 8724a55
v: v3
  • Loading branch information
Michael Ellerman authored and Benjamin Herrenschmidt committed Jun 2, 2009
1 parent 696aec6 commit 904dd9b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 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: 898b160fe9d84b7e194c9ed0495193952909c9bd
refs/heads/master: 92e02a5125a22a4da58090c94f520432da700d73
9 changes: 2 additions & 7 deletions trunk/arch/powerpc/kernel/ftrace.c
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,6 @@


#ifdef CONFIG_DYNAMIC_FTRACE
static unsigned int ftrace_nop_replace(void)
{
return PPC_INST_NOP;
}

static unsigned int
ftrace_call_replace(unsigned long ip, unsigned long addr, int link)
{
Expand Down Expand Up @@ -314,7 +309,7 @@ int ftrace_make_nop(struct module *mod,
if (test_24bit_addr(ip, addr)) {
/* within range */
old = ftrace_call_replace(ip, addr, 1);
new = ftrace_nop_replace();
new = PPC_INST_NOP;
return ftrace_modify_code(ip, old, new);
}

Expand Down Expand Up @@ -452,7 +447,7 @@ int ftrace_make_call(struct dyn_ftrace *rec, unsigned long addr)
*/
if (test_24bit_addr(ip, addr)) {
/* within range */
old = ftrace_nop_replace();
old = PPC_INST_NOP;
new = ftrace_call_replace(ip, addr, 1);
return ftrace_modify_code(ip, old, new);
}
Expand Down

0 comments on commit 904dd9b

Please sign in to comment.