Mercurial > hg > Game > Cerium
comparison TaskManager/kernel/main.cc @ 1060:b4b35255a99c draft
spuidle fix.
author | tkaito@henri |
---|---|
date | Wed, 15 Dec 2010 18:00:05 +0900 |
parents | 8cd123d2f3ca |
children | ca73615ab585 |
comparison
equal
deleted
inserted
replaced
1059:a8d96bafe9a3 | 1060:b4b35255a99c |
---|---|
39 if (strcmp(argv[i], "-cpu") == 0) { | 39 if (strcmp(argv[i], "-cpu") == 0) { |
40 machineNum = atoi(argv[++i]); | 40 machineNum = atoi(argv[++i]); |
41 } else if (strcmp(argv[i], "-p") == 0) { | 41 } else if (strcmp(argv[i], "-p") == 0) { |
42 profile = 1; | 42 profile = 1; |
43 } else if (strcmp(argv[i], "-spuidle") == 0) { | 43 } else if (strcmp(argv[i], "-spuidle") == 0) { |
44 spuIdle = 1; | 44 spuIdle = atoi(argv[++i]); |
45 } | 45 } |
46 } | 46 } |
47 | 47 |
48 TaskManager *manager = new TaskManager(machineNum); | 48 TaskManager *manager = new TaskManager(machineNum); |
49 manager->init(spuIdle); | 49 manager->init(spuIdle); |