changelog shortlog tags branches changeset file revisions annotate raw help

Mercurial > hg > plan9front / sys/src/9/bcm/main.c

revision 3448: 9ebd6b091242
parent 3415: 4477c30eec57
child 4074: a7cf12962171
     1.1--- a/sys/src/9/bcm/main.c
     1.2+++ b/sys/src/9/bcm/main.c
     1.3@@ -430,17 +430,18 @@ confinit(void)
     1.4 	uintptr pa;
     1.5 	char *p;
     1.6 
     1.7+	if(p = getconf("service")){
     1.8+		if(strcmp(p, "cpu") == 0)
     1.9+			cpuserver = 1;
    1.10+		else if(strcmp(p,"terminal") == 0)
    1.11+			cpuserver = 0;
    1.12+	}
    1.13+
    1.14 	if(p = getconf("*kernelpercent"))
    1.15 		userpcnt = 100 - strtol(p, 0, 0);
    1.16 	else
    1.17 		userpcnt = 0;
    1.18 
    1.19-	if(0 && (p = getconf("service")) != nil){
    1.20-		if(strcmp(p, "cpu") == 0)
    1.21-			cpuserver = 1;
    1.22-		else if(strcmp(p,"terminal") == 0)
    1.23-			cpuserver = 0;
    1.24-	}
    1.25 	if((p = getconf("*maxmem")) != nil){
    1.26 		memsize = strtoul(p, 0, 0) - PHYSDRAM;
    1.27 		if (memsize < 16*MB)		/* sanity */