提交 a75acf85 编写于 作者: I Ingo Molnar 提交者: Linus Torvalds

[PATCH] profiling: fix sched profiling typo

Fix sched profiling typo, introduced by the sleep profiling patch.  This
bug caused profile=sched to not work.
Signed-off-by: NIngo Molnar <mingo@elte.hu>
Signed-off-by: NAndrew Morton <akpm@osdl.org>
Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
上级 7bf23687
...@@ -63,7 +63,7 @@ static int __init profile_setup(char * str) ...@@ -63,7 +63,7 @@ static int __init profile_setup(char * str)
printk(KERN_INFO printk(KERN_INFO
"kernel sleep profiling enabled (shift: %ld)\n", "kernel sleep profiling enabled (shift: %ld)\n",
prof_shift); prof_shift);
} else if (!strncmp(str, sleepstr, strlen(sleepstr))) { } else if (!strncmp(str, schedstr, strlen(schedstr))) {
prof_on = SCHED_PROFILING; prof_on = SCHED_PROFILING;
if (str[strlen(schedstr)] == ',') if (str[strlen(schedstr)] == ',')
str += strlen(schedstr) + 1; str += strlen(schedstr) + 1;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册