remove vestigial donation code Reference: /n/atom/patch/applied/nodonate Date: Wed Jun 4 17:47:52 CES 2014 Signed-off-by: quanstro@quanstro.net --- /sys/src/nix/port/devcons.c Wed Jun 4 17:47:47 2014 +++ /sys/src/nix/port/devcons.c Wed Jun 4 17:47:48 2014 @@ -417,7 +417,7 @@ synccons(); splhi(); /* never to release */ - p = seprint(buf, buf+sizeof buf, "panic: cpu%d: ", m->machno); + p = seprint(buf, buf+sizeof buf, "panic: mach%d: ", m->machno); va_start(arg, fmt); vseprint(p, buf+sizeof(buf), fmt, arg); va_end(arg); @@ -825,7 +825,7 @@ char *b, *bp, ch, *s, *e, tmp[512]; int i, k, id, send; long offset; - extern int schedsteals, scheddonates; + extern int schedsteals; if(n <= 0) return n; @@ -1033,7 +1033,6 @@ case Qdebug: e = tmp + sizeof tmp; s = seprint(tmp, e, "steal %d\n", schedsteals); - s = seprint(s, e, "donate %d\n", scheddonates); s = seprint(s, e, "locks %llud\n", lockstats.locks); s = seprint(s, e, "glare %llud\n", lockstats.glare); s = seprint(s, e, "inglare %llud\n", lockstats.inglare); @@ -1060,7 +1059,7 @@ ulong offset; Cmdbuf *cb; Cmdtab *ct; - extern int schedsteals, scheddonates; + extern int schedsteals; a = va; offset = off; @@ -1192,10 +1191,6 @@ schedsteals = 1; else if(strcmp(buf, "nosteal") == 0) schedsteals = 0; - else if(strcmp(buf, "donate") == 0) - scheddonates = 1; - else if(strcmp(buf, "nodonate") == 0) - scheddonates = 0; else error(Ebadctl); break;