Patch From Gary to Julian 2011_12_30

> jhs > garyj
> Why do you want /2
> Something I'm missing.
> 

garyj > jhs
Because I have 6 cores and not using /2 would require that the load is
too high before powerd kicks in to increase the frequency.  Don't want
to wait that long for better performance.

Offset 163 for 8.2-RELEASE, 167 for current-2012_01_02

*** old-generic/src/usr.sbin/powerd/powerd.c	Mon Dec 12 08:23:01 2011
--- new-generic/src/usr.sbin/powerd/powerd.c	Mon Jan  2 04:24:37 2012
***************
*** 167,172 ****
--- 167,175 ----
  			*load += 100 - (cp_times[cpu * CPUSTATES + CP_IDLE] - 
  			    cp_times_old[cpu * CPUSTATES + CP_IDLE]) * 100 / total;
  		}
+ 		/* scale by number of cores */	/*  garyj */
+ 		/* *load /= (ncpus/2);		/ * garyj 6 core host */
+ 		   *load /= (ncpus/2);		/*  jhs   2 core host */
  	}
  
  	memcpy(cp_times_old, cp_times, cp_times_len);

