Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 100563
b: refs/heads/master
c: 492a7ea
h: refs/heads/master
i:
  100561: 27b2013
  100559: a2cba0c
v: v3
  • Loading branch information
Abhishek Sagar authored and Thomas Gleixner committed May 26, 2008
1 parent d180691 commit 26721a2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 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: ffdaa3582b6b39d625d585d07e329ffdc925e971
refs/heads/master: 492a7ea5bcf263ee02a9eb6a3ab0222a1946fade
8 changes: 5 additions & 3 deletions trunk/kernel/trace/ftrace.c
Original file line number Diff line number Diff line change
Expand Up @@ -453,7 +453,7 @@ static void ftrace_shutdown_replenish(void)
ftrace_pages->next = (void *)get_zeroed_page(GFP_KERNEL);
}

static void
static int
ftrace_code_disable(struct dyn_ftrace *rec)
{
unsigned long ip;
Expand All @@ -469,7 +469,9 @@ ftrace_code_disable(struct dyn_ftrace *rec)
if (failed) {
rec->flags |= FTRACE_FL_FAILED;
ftrace_free_rec(rec);
return 0;
}
return 1;
}

static int __ftrace_modify_code(void *data)
Expand Down Expand Up @@ -617,8 +619,8 @@ static int __ftrace_update_code(void *ignore)

/* all CPUS are stopped, we are safe to modify code */
hlist_for_each_entry(p, t, &head, node) {
ftrace_code_disable(p);
ftrace_update_cnt++;
if (ftrace_code_disable(p))
ftrace_update_cnt++;
}

}
Expand Down

0 comments on commit 26721a2

Please sign in to comment.