Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 163776
b: refs/heads/master
c: 40749d0
h: refs/heads/master
v: v3
  • Loading branch information
Ingo Molnar committed Sep 17, 2009
1 parent 2bbfa46 commit 17be04a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 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: 8b412664d0a487c2e16ac43f4fcede346df33254
refs/heads/master: 40749d0ff49f99c3661b336fe5e5625207bd925a
4 changes: 3 additions & 1 deletion trunk/tools/perf/builtin-sched.c
Original file line number Diff line number Diff line change
Expand Up @@ -1347,7 +1347,7 @@ process_sched_wakeup_event(struct raw_event_sample *raw,
* Track the current task - that way we can know whether there's any
* weird events, such as a task being switched away that is not current.
*/
static int max_cpu = 15;
static int max_cpu;

static u32 curr_pid[MAX_CPUS] = { [0 ... MAX_CPUS-1] = -1 };

Expand Down Expand Up @@ -1818,6 +1818,8 @@ static struct trace_sched_handler map_ops = {

static void __cmd_map(void)
{
max_cpu = sysconf(_SC_NPROCESSORS_CONF);

setup_pager();
read_events();
print_bad_events();
Expand Down

0 comments on commit 17be04a

Please sign in to comment.