Module Name: src Committed By: mrg Date: Wed Jan 13 01:57:17 UTC 2010
Modified Files: src/sys/kern: kern_cpu.c kern_runq.c src/sys/sys: cpu.h cpu_data.h Log Message: introduce a new function that returns a unique string for each cpu: char *cpu_name(struct cpu_info *); and use it when setting up the runq event counters, avoiding an 8 byte kmem(4) allocation for each cpu. there are more places the cpuname is used that can be converted to using this new interface, but that can and will be done as future work. as discussed with rmind. To generate a diff of this commit: cvs rdiff -u -r1.42 -r1.43 src/sys/kern/kern_cpu.c cvs rdiff -u -r1.28 -r1.29 src/sys/kern/kern_runq.c cvs rdiff -u -r1.30 -r1.31 src/sys/sys/cpu.h cvs rdiff -u -r1.27 -r1.28 src/sys/sys/cpu_data.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.