Skip to content

Commit

Permalink
perf, sched migration: Ignore unhandled task states
Browse files Browse the repository at this point in the history
Stop printing an error message when we don't have the letter
for a given task state. All we need to know is if the task is
in the TASK_RUNNING state.

Signed-off-by: Frederic Weisbecker <[email protected]>
Cc: Ingo Molnar <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: Arnaldo Carvalho de Melo <[email protected]>
Cc: Paul Mackerras <[email protected]>
Cc: Nikhil Rao <[email protected]>
Cc: Tom Zanussi <[email protected]>
  • Loading branch information
fweisbec committed Aug 1, 2010
1 parent 749e507 commit 207f90f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions tools/perf/scripts/python/sched-migration.py
Original file line number Diff line number Diff line change
Expand Up @@ -260,8 +260,7 @@ def taskState(state):
}

if state not in states:
print "Unhandled task state %d" % state
return ""
return "Unknown"

return states[state]

Expand Down

0 comments on commit 207f90f

Please sign in to comment.