# HG changeset patch # User Francisco J Ballesteros # Date 1326927694 28800 # Node ID 147dee9a7fe75f213d66002ecc79d08400f15bda # Parent ad15087848d427a3480da063cd6fe905302e31ad main: cleanup R=nixiedev, john CC=nix-dev http://codereview.appspot.com/5554046 Committer: John Floren diff -r ad15087848d4 -r 147dee9a7fe7 sys/src/nix/k10/main.c --- a/sys/src/nix/k10/main.c Wed Jan 18 12:46:49 2012 -0800 +++ b/sys/src/nix/k10/main.c Wed Jan 18 15:01:34 2012 -0800 @@ -7,7 +7,6 @@ #include "init.h" #include "io.h" -static int initialTCs = 32; /* default # of TCs */ Conf conf; /* XXX - must go - gag */ @@ -32,6 +31,7 @@ static int oargblen; static int maxcores = 1024; /* max # of cores given as an argument */ +static int numtcs = 16; /* initial # of TCs */ char dbgflg[256]; static int vflag = 0; @@ -75,7 +75,7 @@ argv++; } if(argc > 0){ - initialTCs = strtol(argv[0], 0, 0); + numtcs = strtol(argv[0], 0, 0); //argc--; //argv++; } @@ -208,7 +208,7 @@ */ mp->icc = mallocalign(sizeof *m->icc, ICCLNSZ, 0, 0); mp->icc->fn = nil; - if(i < initialTCs){ + if(i < numtcs){ conf.nmach++; mp->nixtype = NIXTC; }