linux/drivers/macintosh/windfarm_pm81.c
<<
/> =/spatio =/formio =a /> href="../linux+v3n> 10/drivers/macintosh/windfarm_pm81.c">/> =img src="../.static/gfx/right.png" alt=">>">/>=/spatio/>=spat class="lxr_search">/> /> =input typ 2 hidden" nam 2 navtarget" 1" 2 ">/> =input typ 2 text" nam 2 search" id2 search">/> =butt2.6typ 2 submit">Search=spat class="lxr_prefs"io =a href="+prefs?return=drivers/macintosh/windfarm_pm81.c"/> onclick="return ajax_prefs();">/> Prefso =/a>/>=/spatio =/divio =form ac/>=input typ 2 hidden" nam 2 ajax_lookup" id2 ajax_lookup" 1" 2 ">/ =/formio/ =div class="headingbott2m">o =div id2 file_contents"i
   1=/a>=spat class="comment">/*=/spatio   2=/a>=spat class="comment"> * Windfarm PowerMac thermal control. iMac G5=/spatio   3=/a>=spat class="comment"> *=/spatio   4=/a>=spat class="comment"> * (c) Copyright 2005 Benjamin Herrenschmidt, IBM Corp.=/spatio   5=/a>=spat class="comment"> *                    <benh@kernel.crashing.org>=/spatio   6=/a>=spat class="comment"> *=/spatio   7=/a>=spat class="comment"> * Released under the term of the GNU GPL3"
n=/spatio   8=/a>=spat class="comment"> *=/spatio   9=/a>=spat class="comment"> * The algorithm used is the PID control algorithm, used the sam =/spatio   >9>a>=spat class="comment"> * way the published Darwin code does, using the sam  1"
	 s that=/spatio  11=/a>=spat class="comment"> * are present in the Darwin 8.2 snapshot property lists (note however=/spatio  12=/a>=spat class="comment"> * that none_pm81.c#L9" id2 L9" class="line" nam 2 L9">   9=/a>=spat class="comment"> * The algorithm used is 36Das 312
 5 4 v3.16.2
  
n 8.2 snare-s="c, it's an>
mplecomre-imples 31a>/
 * that none_pm81.c#L9" id2 L9" class="line" nam 2 L9" id2 L4"1 class="line" nam 2 L4"1>   41/a>=spat class="comment"> * (c) Copyright 2005 Benjamin Herrenschmidt, IBM Corp.=1/spatio<1a href="drivers/macinto1sh/wi1dfarm_pm81.c#L5" id2 L5" class2 L1various">   >9>aassps fo  8 cla" nam 2 Lnfig _pm812" :c) Copyright 2005 Benjamin Herrenschmidt, IBM Corp.=1spatio   71/a>=spat class="comment"> * R   3=/a>=8,1 a 8   3=/a>=8,2c) Copyright 2005 Benjamin Herrenschmidt, IBM Corp.=1href="dr1ivers/macintosh/windfar1m_pm81.c#L8" id2 L8" class="line" na===========================c) Copyright 2005 Benjamin Herrenschmidt, IBM Corp.=1 id2 L9"1 class="line" nam 2 L9"1>   91/a>=spat class="comment"> * The algorithm used is the PID control algorithm, used1 the sam1 =/spatio   >9>aassp. Differ12" bL8"> oshm
  ls. Ilseddiriverto12ioindfarm PowerMac thermal control. iMac G5=/spatio=spat clas2ion>
  >9>aassp 	=/s 2seddirivelaspairs=spf ">ors<(scale/offs=/s) exd2 L8">  8.ptio _px"> po9" ="comme* that none_pm81.c#L9" id2 L9" class="line" nam 2 L92href="driivers/macintosh/windfarm The 2lgorithm used is 36Das 312
 5 sign"> offs=/1=/nsign"> scale)* that none_pm81.c#L9" id2 L9" class="line" nam 2 L92 id2 L4"2 class="line" nam 2 L4"2>   42/a>=spat class="comment"> * (c) Copyright 2005 Benjamin Herrenschmidt, IBM Corp.=2/spatio<2a href="drivers/macinto2sh/wi2dfarm_pm81.c#L5" id2 L5" class2 L1mio	=/s12" im
 ifi"> such  8:c) Copyright 2005 Benjamin Herrenschmidt, IBM Corp.=2spatio >
  >9>a(se>
 > >
  >9>) 	=/s t L1mio	=/="comm  8-ie* that none_pm81.c#L9" id2 L9" class="line" nam 2 L92 id2 L7"2 class="line" nam 2 L7"2>   72/a>=spat class="comment"> * R    (typicallL11" cc#L9"pf n)* that none_pm81.c#L9" id2 L9" class="line" nam 2 L92href="dr2ivers/macintosh/windfar2m_pm82.c#L8" id2 L8" class="line" na"-s2ionmam 2 Ln >9>a(first >
  >9>) 	=/s t L1mio	=/="comm scaled wt c* that none_pm81.c#L9" id2 L9" class="line" nam 2 L92 id2 L9"2 class="line" nam 2 L9"2>   92/a>=spat class="comment"> * T    t L1first pairors, a 8  nam 2nim
 ifi">  8.2 low* that none_pm81.c#L9" id2 L9" class="line" nam 2 L92 the sam2 =/spatio
  >9>aassp  naretrit">d,spatio
 > pairors, a 8 2ionmax=/o12iv3.a 8spatio to12ionmam 2 Ln >9>/spatio>   43/a>=spat class="comment"> * ( #hm
  l_id: 2c) Copyright 2005 Benjamin Herrenschmidt, IBM Corp.=3/spatio<3a href="drivers/macinto3sh/wi3dfarm_pm81.c#L5" id2 L5" class 2 Ln >9>s L6">  : system-f n,cc#L9"-bay-f nc) Copyright 2005 Benjamin Herrenschmidt, IBM Corp.=3spatio  : hd-tempc) Copyright 2005 Benjamin Herrenschmidt, IBM Corp.=3 id2 L7"3 class="line" nam 2 L7"3>   73/a>=spat class="comment"> * R   L10"params6">  : G_d = 0x15400000c) Copyright 2005 Benjamin Herrenschmidt, IBM Corp.=3href="dr3ivers/macintosh/windfar3m_pm83.c#L8" id2 L8" class="line" na"""""""""""""""""""G_p = 0x00200000c) Copyright 2005 Benjamin Herrenschmidt, IBM Corp.=3 id2 L9"3 class="line" nam 2 L9"3>   93/a>=spat class="comment"> * T    """"""""""""""""G_r = 0x000002f8spatioory = 2 #L1rite* that none_pm81.c#L9" id2 L9" class="line" nam 2 L941"
	 s t4at=/spatioors<: offs=/== 0xff381scale  = 0x0cc8spatio   44/a>=spat class="comment"> * (                    offs=/== 0x02081scale  = 0x07aoindfarm PowerMac thermal control. iMac G5=/spatio   74/a>=spat class="comment"> * R    Ln >9>s L6">  : system-f n,cc#L9"-bay-f nc) Copyright 2005 Benjamin Herrenschmidt, IBM Corp.=4href="dr4ivers/macintosh/windfar4m_pm84.c#L8" id2 L8" class="line" na""L12sors< L6">  : hd-tempc) Copyright 2005 Benjamin Herrenschmidt, IBM Corp.=4 id2 L9"4 class="line" nam 2 L9"4>   94/a>=spat class="comment"> * T   L10"params6">  : G_d = 0x08e00000c) Copyright 2005 Benjamin Herrenschmidt, IBM Corp.=4 the sam4 =/spatioory = 2 #L1rite* that none_pm81.c#L9" id2 L9" class="line" nam 2 L95href="dr5ivers/macintosh/windfar5 The 5lgorithm used is 36Das 312
 5  1dddddddddddddddddI
 
    45/a>=spat class="comment"> * (                    I
ter"co== 5e* that none_pm81.c#L9" id2 L9" class="line" nam 2 L95/spatio<5a href="drivers/macinto5sh/wi5dfarm_pm81.c#L5" id2 L5" class 2ors<: offs=/== 0xff381scale  = 0x0cc8spatio  offs=/== 0x00001scale  = 0x0000c) Copyright 2005 Benjamin Herrenschmidt, IBM Corp.=5 id2 L7"5 class="line" nam 2 L7"5>   75/a>=spat class="comment"> * Released under the term of the GNU GPL3"
n=/spatio   95/a>=spat class="comment"> * T    Ln >9>s L6">  : system-f nspatio  : hd-tempc) Copyright 2005 Benjamin Herrenschmidt, IBM Corp.=61"
	 s t6at=/spatio  : G_d = 0x15400000c) Copyright 2005 Benjamin Herrenschmidt, IBM Corp.=6ts (note6however=/spatio   46/a>=spat class="comment"> * (                    His>ory = 2 #L1rite* that none_pm81.c#L9" id2 L9" class="line" nam 2 L96/spatio<6a href="drivers/macinto6sh/wi6dfarm_pm81.c#L5" id2 L5" class 2dddddddddddddddddI
 
   I
ter"co== 5e* that none_pm81.c#L9" id2 L9" class="line" nam 2 L96 id2 L7"  class="line" nam 2 L7">>   76/a>=spat class="comment"> * R   ors<: offs=/== 0x00001scale  = 0x1000c) Copyright 2005 Benjamin Herrenschmidt, IBM Corp.=6href="dr6ivers/macintosh/windfar6m_pm86.c#L8" id2 L8" class="line" na"""""""""""""""""""offs=/== 0x00911scale  = 0x0baoindfarm PowerMac thermal control. iMac G5=/spatio   96/a>=spat class="comment"> * The algorithm used is the PID control algorithm, used6 the sam6 =/spatio
  >9>aassp.s2 L1assp  naid#L1ical for allhm
  ls. i * are present in the Darwin 8.2 snapshot property li71"
	 s t7at=/spatio=spf ">or.s2  naisss="como1scale 2ioindfarm PowerMac thermal control. iMac G5=/spatio
  >9>aassp /io	=/=431007 (2ion6.2   >9>aassp i self).s2 Ln, 2ionmax="comm /o12ioindfarm PowerMac thermal control. iMac G5=/spatio   47/a>=spat class="comment"> * ( calculated mio	=/="comm  nd1systempf nn"comm issL12" to12ionf ne* that none_pm81.c#L9" id2 L9" class="line" nam 2 L97/spatio<7a href="drivers/macinto7sh/wi7dfarm_pm81.c#L5" id2 L5" clasindfarm PowerMac thermal control. iMac G5=/spatio  : cpu-f nspatio   77/a>=spat class="comment"> * R   L12sors< L6">  : cpu-temp cpu-p 3=/spatio  : From SMU sdb"parti>/
 * that none_pm81.c#L9" id2 L9" class="line" nam 2 L97 id2 L9"7 class="line" nam 2 L9"7>   97/a>=spat class="comment"> * T   ors<: offs=/== 0xfb501scale  = 0x1000c) Copyright 2005 Benjamin Herrenschmidt, IBM Corp.=7 the sam7 =/spatio
  >9>aassp.sNot imples 31ed.s2 L1cpufreqcc#L9"r cla/>=sp ie* that none_pm81.c#L9" id2 L9" class="line" nam 2 L98ts (note8however=/spatio
mplecoly L1parate for now, 2iough won>
uld f="l ad2 L11onverk i , eipat * that none_pm81.c#L9" id2 L9" class="line" nam 2 L98href="dr8ivers/macintosh/windfar8 The 8lgorithm used is 36Das 312
 5 as an>li12" re ">/=spao o9" temp notifica>/
 s, or directl>=spmoni>or>=s* that none_pm81.c#L9" id2 L9" class="line" nam 2 L98 id2 L4"8 class="line" nam 2 L4"8>   48/a>=spat class="comment"> * ( 2ionCPU temperaturoindfarm PowerMac thermal control. iMac G5=/spatio   >9>aassp requires 2ionCPU tmax=for 2ion>ut cl * are present in the Darwin 8.2 snapshot property li8 id2 L7"8 class="line" nam 2 L7"8>   78/a>=spat class="comment"> * R operat>=sppo9" . Hent"> , won>ut cl ly 2" i>
mplecoly L1parated from* are present in the Darwin 8.2 snapshot property li8href="dr8ivers/macintosh/windfar8m_pm88.c#L8" id2 L8" class="line" nat L1cpufreqcc#L9"r a 8 2ius do not know wiv3.2ion>ut cl  operat>=s* are present in the Darwin 8.2 snapshot property li8 id2 L9"  class="line" nam 2 L9">>   98/a>=spat class="comment"> * T po9" =is. Fortunacoly, wonalso do not havm  ny hardw2" isupport>=sp nyth>=s* are present in the Darwin 8.2 snapshot property li8 the sam8 =/spatio=sppo9"  0 v3.2ionmoc#L1, 2ius wonjust peek12iv3."comm directlyhe algorithm used is the PID control algorithm, used 1"
	 s t9at=/spatio/
 . If wont">  e 8 up wt cp ">uallL1slew>=spat clystemhe algorithm used is the PID control algorithm, used ts (note9however=/spatiolock a 8 2ius chang>=spoperat>=sppo9" s, wo'llhhavm ao f="l ad2 L11ohe algorithm used is the PID control algorithm, used href="dr9ivers/macintosh/windfar9 The 9lgorithm used is 36Das 312
 5 6Dasunica>e wt cpat cCPU freqcc#L9"r/spatio   49/a>=spat class="comment"> * (c) Copyright 2005 Benjamin Herrenschmidt, IBM Corp.=9/spatio<9a href="drivers/macinto9sh/wi9dfarm_pm81.c#L5" id2 L5" clas/c) Copyright 2005 Benjamin Herrenschmidt, IBM Corp.=9spatio   79/a>=s#include  6=/ight 2005includeo/>=sp//divs.hclass="lifref">/>=sp//divs.ha>=s *=/right 2005 Benjamin Herrenschmidt, IBM Corp.=9href="dr9ivers/macintosh/windfar9m_pm897a>=s#include  6=/ight 2005includeo/>=sp/errno.hclass="lifref">/>=sp/errno.ha>=s *=/right 2005 Benjamin Herrenschmidt, IBM Corp.=9 id2 L9"9 class="line" nam 2 L9"9>   998a>=s#include  6=/ight 2005includeo/>=sp/at clashclass="lifref">/>=sp/at clasha>=s *=/right 2005 Benjamin Herrenschmidt, IBM Corp.=9 the sam  =/spatio/>=sp/delaysha>=s *=/right 2005 Benjamin Herrenschmidt, IBM Corp.=100"
	 s thaat=/spatio/>=sp/slabsha>=s *=/right 2005 Benjamin Herrenschmidt, IBM Corp.=10ts (note 0however=/spatio/>=sp/ini>sha>=s *=/right 2005 Benjamin Herrenschmidt, IBM Corp.=10>   9=/a>0=spat class="comment"> *02s/m102a>=s#include  6=/ight 2005includeo/>=sp/spinlockshclass="lifref">/>=sp/spinlocksha>=s *=/right 2005 Benjamin Herrenschmidt, IBM Corp.=10 id2 L4"10 class="line" nam 2 L4"103s/m103a>=s#include  6=/ight 2005includeo/>=sp/wai>shclass="lifref">/>=sp/wai>sha>=s *=/right 2005 Benjamin Herrenschmidt, IBM Corp.=10/spatio<10a href="drivers/macinto104s/m104a>=s#include  6=/ight 2005includeo/>=sp/amodshclass="lifref">/>=sp/amodsha>=s *=/right 2005 Benjamin Herrenschmidt, IBM Corp.=10spatio/>=sp/devicesha>=s *=/right 2005 Benjamin Herrenschmidt, IBM Corp.=10 id2 L7"10 class="line" nam 2 L7"106s/m10/a>=s#include  6=/ight 2005includeo/>=sp/plat 
  _deviceshclass="lifref">/>=sp/plat 
  _devicesha>=s *=/right 2005 Benjamin Herrenschmidt, IBM Corp.=10href="dr10ivers/macintosh/windfar107s/m107a>=s#include  6=/ight 2005+ambig=includeoasm-alpha/prom.h|includeoasm-arm/prom.h|includeoasm-avr32/prom.h|includeoasm-blackf="/prom.h|includeoasm-cris/prom.h|includeoasm-frv/prom.h|includeoasm-generic/prom.h|includeoasm-h8300/prom.h|includeoasm-i386/prom.h|includeoasm-ia64/prom.h|includeoasm-m32r/prom.h|includeoasm-m68k/prom.h|includeoasm-m68knDasu/prom.h|includeoasm-mips/prom.h|includeoasm-mips64/prom.h|includeoasm-parisc/prom.h|includeoasm-p 3=/pc/prom.h|includeoasm-ppc/prom.h|includeoasm-s390/prom.h|includeoasm-nscprom.h|includeoasm-ns64/prom.h|includeoasm- Corc/prom.h|includeoasm-sCorc64/prom.h|includeoasm-um/prom.h|includeoasm-v850/prom.h|includeoasm-x86/prom.h|includeoasm-x86_64/prom.h|includeoasm-xtensa/prom.hclass="lifal clasm/prom.ha>=s *=/right 2005 Benjamin Herrenschmidt, IBM Corp.=10 id2 L9"10 class="line" nam 2 L9"108s/m108a>=s#include  6=/ight 2005+ambig=includeoasm-alpha/n Hhdep.h|includeoasm-arm/n Hhdep.h|includeoasm-avr32/n Hhdep.h|includeoasm-blackf="/n Hhdep.h|includeoasm-cris/n Hhdep.h|includeoasm-frv/n Hhdep.h|includeoasm-generic/n Hhdep.h|includeoasm-h8300/n Hhdep.h|includeoasm-i386/n Hhdep.h|includeoasm-ia64/n Hhdep.h|includeoasm-m32r/n Hhdep.h|includeoasm-m68k/n Hhdep.h|includeoasm-m68knDasu/n Hhdep.h|includeoasm-mips/n Hhdep.h|includeoasm-mips64/n Hhdep.h|includeoasm-parisc/n Hhdep.h|includeoasm-p 3=/pc/n Hhdep.h|includeoasm-ppc/n Hhdep.h|includeoasm-s390/n Hhdep.h|includeoasm-sh/n Hhdep.h|includeoasm-sh64/n Hhdep.h|includeoasm- Corc/n Hhdep.h|includeoasm- Corc64/n Hhdep.h|includeoasm-um/n Hhdep.h|includeoasm-v850/n Hhdep.h|includeoasm-x86/n Hhdep.h|includeoasm-x86_64/n Hhdep.h|includeoasm-xtensa/n Hhdep.hclass="lifal clasm/n Hhdep.ha>=s *=/right 2005 Benjamin Herrenschmidt, IBM Corp.=10 the sam10 =/spatio/
 s.h|includeoasm-arm/se">/
 s.h|includeoasm-avr32/se">/
 s.h|includeoasm-blackf="/se">/
 s.h|includeoasm-cris/se">/
 s.h|includeoasm-frv/se">/
 s.h|includeoasm-generic/se">/
 s.h|includeoasm-h8300/se">/
 s.h|includeoasm-i386/se">/
 s.h|includeoasm-ia64/se">/
 s.h|includeoasm-m32r/se">/
 s.h|includeoasm-m68k/se">/
 s.h|includeoasm-m68knDasu/se">/
 s.h|includeoasm-mips/se">/
 s.h|includeoasm-mips64/se">/
 s.h|includeoasm-parisc/se">/
 s.h|includeoasm-p 3=/pc/se">/
 s.h|includeoasm-ppc/se">/
 s.h|includeoasm-s390/se">/
 s.h|includeoasm-sh/se">/
 s.h|includeoasm-sh64/se">/
 s.h|includeoasm- Corc/se">/
 s.h|includeoasm- Corc64/se">/
 s.h|includeoasm-um/se">/
 s.h|includeoasm-v850/se">/
 s.h|includeoasm-x86/se">/
 s.h|includeoasm-x86_64/se">/
 s.h|includeoasm-xtensa/se">/
 s.hclass="lifal clasm/se">/
 s.ha>=s *=/right 2005 Benjamin Herrenschmidt, IBM Corp.=1 ts (note hhowever=/spatio ** The1algoriright 2005 Benjamin Herrenschmidt, IBM Corp.=1  id2 L4"11 class="line" nam 2 L4"11>   113a>=s#include  quo=/ight 2005 Benjamin Herrenschmidt, Ishclass="lifref">hmidt, Isha>=s quo=/right 2005 Benjamin Herrenschmidt, IBM Corp.=1 /spatio<11a href="drivers/macinto11sh/w114a>=s#include  quo=/ight 2005 Benjamin Herrenschmidt, I_pidshclass="lifref">hmidt, I_pidsha>=s quo=/right 2005 Benjamin Herrenschmidt, IBM Corp.=1 spatio   11/a>=s#def="epatio
 
   >
  =VERSIONclass="lisref">VERSIONa>=s _pm81.c#L5" istr>=s"s quo=/0.4 quo=/i are present in the Darwin 8.2 snapshot property listhref="dr11ivers/macintosh/windfar11m_pm11.c#L8resent in the Darwin 8.2 snapshot property list id2 L9"11 class="line" nam 2 L9"11>   11/a>=s#  8=fpatio
 
   >
  =DEBUGclass="lisref">DEBUGc#L8resent in the Darwin 8.2 snapshot property list the sam11 =/spatio1"
	 s th2at=/spatioDEBUGc#L8resent in the Darwin 8.2 snapshot property lis2ts (note12however=/spatio
  =DBGclass="lisref">DBGc#L8(atio
 
   >
  =argsclass="lisref">argsc#L8...)">  atio
 
   >
  =pr>=tkclass="lisref">pr>=tkc#L8(atio
 
   >
  =argsclass="lisref">argsc#L8)resent in the Darwin 8.2 snapshot property lis2>   9=/a>==spat class="comment"> *  The12lgori#elseresent in the Darwin 8.2 snapshot property lis2 id2 L4"12 class="line" nam 2 L4"12>   12/a>=s#def="epatio
 
   >
  =DBGclass="lisref">DBGc#L8(atio
 
   >
  =argsclass="lisref">argsc#L8...)">  do { } while(0)resent in the Darwin 8.2 snapshot property lis2/spatio<12a href="drivers/macinto12sh/w12dfarm#endifresent in the Darwin 8.2 snapshot property lis2spatio   12/a>=spat class="comment"> */* def="eputt2 ao forc cCPU o9" temp ao 74 degreeass="ful for test>=s* are present in the Darwin 8.2 snapshot property li12href="dr12ivers/macintosh/windfar12m_pm12.c#L8" id2 L8" class="line" na2ion69" temp >
  * are present in the Darwin 8.2 snapshot property li12 id2 L9"12 class="line" nam 2 L9"12>   12/a>=spat class="comment"> * T/c) Copyright 2005 Benjamin Herrenschmidt, IBM Corp.=12 the sam12 =/spatioHACKED_OVERTEMParm_right 2005 Benjamin Herrenschmidt, IBM Corp.=1 1"
	 s t13at=/spatio
  =wf_smu_n Hh_m
  lclass="lisref">wf_smu_n Hh_m
  l/mac;>  aat class="comment"> */* n Hh="epm
  l (n T/c) Copyright 2005 Benjamin Herrenschmidt, IBM Corp.=13href="dr13ivers/macintosh/windfar13 The13lgoriright 2005 Benjamin Herrenschmidt, IBM Corp.=13 id2 L4"1  class="line" nam 2 L4"1>>   13/a>=spat class="comment"> */* CLn >9>s & L12sorswf_s12sora>=s *atio
 
   >
  =s12sor_cpu_p 3=/class="lisref">s12sor_cpu_p 3=//mac;right 2005 Benjamin Herrenschmidt, IBM Corp.=13spatiowf_s12sora>=s *atio
 
   >
  =s12sor_cpu_tempclass="lisref">s12sor_cpu_tempc)ac;right 2005 Benjamin Herrenschmidt, IBM Corp.=13 id2 L7"13 class="line" nam 2 L7"13>   13/a>=snsubmi struc  atio
 
   >
  =wf_s12sorclass="lisref">wf_s12sora>=s *atio
 
   >
  =s12sor_hd_tempclass="lisref">s12sor_hd_tempc)ac;right 2005 Benjamin Herrenschmidt, IBM Corp.=13href="dr13ivers/macintosh/windfar13m_pm13.c#L8nsubmi struc  atio
 
   >
  =wf_>   >9>class="lisref">wf_>   >9>a>=s *atio
 
   >
  =fan_cpu_mam class="lisref">fan_cpu_mam c)ac;right 2005 Benjamin Herrenschmidt, IBM Corp.=13 id2 L9"13 class="line" nam 2 L9"13>   13/a>=snsubmi struc  atio
 
   >
  =wf_>   >9>class="lisref">wf_>   >9>a>=s *atio
 
   >
  =fan_hdclass="lisref">fan_hdc)ac;right 2005 Benjamin Herrenschmidt, IBM Corp.=13 the sam13 =/spatiowf_>   >9>a>=s *atio
 
   >
  =fan_lystemclass="lisref">fan_lystemheac;right 2005 Benjamin Herrenschmidt, IBM Corp.=141"
	 s t14at=/spatiowf_>   >9>a>=s *atio
 
   >
  =cpufreq_assmpclass="lisref">cpufreq_assmpheac;right 2005 Benjamin Herrenschmidt, IBM Corp.=14ts (note14however=/spatio
  >9>aassp erre life   14/a>=snsubmi 9"  atio
 
   >
  =wf_smu_all_>   >9>s_okclass="lisref">wf_smu_all_>   >9>s_oka>=s, atio
 
   >
  =wf_smu_all_L12sors_okclass="lisref">wf_smu_all_L12sors_oka>=s, atio
 
   >
  =wf_smu_nsu tedclass="lisref">wf_smu_nsu tedheac;right 2005 Benjamin Herrenschmidt, IBM Corp.=14/spatio<1aa href="drivers/macinto1ssh/w14dfarmright 2005 Benjamin Herrenschmidt, IBM Corp.=14spatio
uld be nicer   14/a>=s#def="epatio
 
   >
  =FAILURE_FANclass="lisref">FAILURE_FANa>=s             0x01right 2005 Benjamin Herrenschmidt, IBM Corp.=14href="dr14ivers/macintosh/windfar14m_pm14.c#L8#def="epatio
 
   >
  =FAILURE_SENSORclass="lisref">FAILURE_SENSORa>=s          0x02right 2005 Benjamin Herrenschmidt, IBM Corp.=14 id2 L9"14 class="line" nam 2 L9"14>   14/a>=s#def="epatio
 
   >
  =FAILURE_OVERTEMPclass="lisref">FAILURE_OVERTEMPa>=s        0x04right 2005 Benjamin Herrenschmidt, IBM Corp.=14 the sam14 =/spatio 9"  atio
 
   >
  =wf_smu_failur _nsuteclass="lisref">wf_smu_failur _nsuteheac;right 2005 Benjamin Herrenschmidt, IBM Corp.=1sts (note15however=/spatio
  =wf_smu_readjustclass="lisref">wf_smu_readjusta>=s, atio
 
   >
  =wf_smu_nkipp>=s"lass="lisref">wf_smu_nkipp>=sheac;right 2005 Benjamin Herrenschmidt, IBM Corp.=1shref="dr15ivers/macintosh/windfar15 The15lgoriright 2005 Benjamin Herrenschmidt, IBM Corp.=15 id2 L4"15 class="line" nam 2 L4"15>   15/a>=spat class="comment"> * Windfarm PowerMac thermal control. iMac G5=/spatio9> Lssp ******indfarm PowerMac thermal control. iMac G5=/spatio   15/a>=spat class="comment"> * R/c) Copyright 2005 Benjamin Herrenschmidt, IBM Corp.=15href="dr15ivers/macintosh/windfar15m_pm15.c#L8resent in the Darwin 8.2 snapshot property lis5 id2 L9"15 class="line" nam 2 L9"15>   15/a>=spat class="comment"> */* ParametDar=for 2ionSystem Fans">   >9>aassp. ParametDarc) Copyright 2005 Benjamin Herrenschmidt, IBM Corp.=15 the sam15 =/spatioory size, ../spatio
mmverto1allhrs/m/
 s a 8 2ius hard >
  d for now/spatio
  =wf_smu_nys_f ne_param"lass="lisref">wf_smu_nys_f ne_parama>=s {right 2005 Benjamin Herrenschmidt, IBM Corp.=16 id2 L4"16 class="line" nam 2 L4"16>   16/a>=s        9"  ">  atio
 
   >
  =m
  l_id"lass="lisref">m
  l_idheac;right 2005 Benjamin Herrenschmidt, IBM Corp.=16/spatio<16a href="drivers/macinto16sh/w16dfarm        atio
 
   >
  =s3ivers/macisref">s3lgori     atio
 
   >
  =imio	=/sprs/macisref">imio	=/heac;right 2005 Benjamin Herrenschmidt, IBM Corp.=16spatios3lgori     atio
 
   >
  =gd"lass="lisref">gda>=s, atio
 
   >
  =gpclass="lisref">gpa>=s, atio
 
   >
  =grclass="lisref">g//mac;right 2005 Benjamin Herrenschmidt, IBM Corp.=16 id2 L7"1  class="line" nam 2 L7"1>>   16/a>=sright 2005 Benjamin Herrenschmidt, IBM Corp.=16href="dr16ivers/macintosh/windfar16m_pm16.c#L8        atio
 
   >
  =s1 class="lisref">s1/a>=s     atio
 
   >
  =offs=/0class="lisref">offs=/0/mac;right 2005 Benjamin Herrenschmidt, IBM Corp.=16 id2 L9"16 class="line" nam 2 L9"16>   16/a>=s        atio
 
   >
  =u1 class="lisref">u1/a>=s     atio
 
   >
  =scale0class="lisref">scale0/mac;right 2005 Benjamin Herrenschmidt, IBM Corp.=16 the sam16 =/spatios1/a>=s     atio
 
   >
  =offs=/1class="lisref">offs=/1/mac;right 2005 Benjamin Herrenschmidt, IBM Corp.=171"
	 s t17at=/spatiou1/a>=s     atio
 
   >
  =scale1class="lisref">scale1/mac;right 2005 Benjamin Herrenschmidt, IBM Corp.=17ts (note17however=/spatio   17/a>=s#def="epatio
 
   >
  =WF_SMU_SYS_FANS_INTERVALclass="lisref">WF_SMU_SYS_FANS_INTERVALntos        5right 2005 Benjamin Herrenschmidt, IBM Corp.=17/spatio<17a href="drivers/macinto17sh/w17dfarm#def="epatio
 
   >
  =WF_SMU_SYS_FANS_HISTORY_SIZEclass="lisref">WF_SMU_SYS_FANS_HISTORY_SIZEntos    2right 2005 Benjamin Herrenschmidt, IBM Corp.=17spatio   17/a>=spat class="comment"> */* Ssute datass="cobL11" csystempf ns">   >9>aasspc) Copyright 2005 Benjamin Herrenschmidt, IBM Corp.=1hhref="dr1iivers/macintosh/windfar1mm_pm17.c#L8" id2 L8" class="line" n/c) Copyright 2005 Benjamin Herrenschmidt, IBM Corp.=17 id2 L9"17 class="line" nam 2 L9"17>   178goristruc  atio
 
   >
  =wf_smu_nys_f ne_nsuteclass="lisref">wf_smu_nys_f ne_nsutea>=s {right 2005 Benjamin Herrenschmidt, IBM Corp.=17 the sam17 =/spatio                  atio
 
   >
  =ticksclass="lisref">ticks/mac;right 2005 Benjamin Herrenschmidt, IBM Corp.=1 1"
	 s t18at=/spatios3lgori                     atio
 
   >
  =nys_s=/po9" vers/macisref">sys_s=/po9" /mac;right 2005 Benjamin Herrenschmidt, IBM Corp.=1 ts (note18however=/spatio
  =s3ivers/macisref">s3lgori                     atio
 
   >
  =hd_s=/po9" vers/macisref">hd_s=/po9" /mac;right 2005 Benjamin Herrenschmidt, IBM Corp.=1 href="dr18ivers/macintosh/windfar18 The182ntos        atio
 
   >
  =s1 class="lisref">s1/a>=s                     atio
 
   >
  =offs=/0class="lisref">offs=/0/mac;right 2005 Benjamin Herrenschmidt, IBM Corp.=18 id2 L4"18 class="line" nam 2 L4"18>   183ntos        atio
 
   >
  =u1 class="lisref">u1/a>=s                     atio
 
   >
  =ncale0class="lisref">scale0/mac;right 2005 Benjamin Herrenschmidt, IBM Corp.=18/spatio<18a href="drivers/macinto18sh/w18dfarm        atio
 
   >
  =s1 class="lisref">s1/a>=s                     atio
 
   >
  =offs=/1class="lisref">offs=/1/mac;right 2005 Benjamin Herrenschmidt, IBM Corp.=18spatiou1/a>=s                     atio
 
   >
  =ncale1class="lisref">scale1/mac;right 2005 Benjamin Herrenschmidt, IBM Corp.=18 id2 L7"18 class="line" nam 2 L7"18>   18/a>=s        struc  atio
 
   >
  =wf_pid_nsuteclass="lisref">wf_pid_nsutea>=s     atio
 
   >
  =pid"lass="lisref">pidheac;right 2005 Benjamin Herrenschmidt, IBM Corp.=18href="dr18ivers/macintosh/windfar18m_pm18.c#L8};right 2005 Benjamin Herrenschmidt, IBM Corp.=18 id2 L9"1  class="line" nam 2 L9"1>>   18/a>=sright 2005 Benjamin Herrenschmidt, IBM Corp.=18 the sam18 =/spatio   >9>aasspc) Copyright 2005 Benjamin Herrenschmidt, IBM Corp.=1 ts (note19however=/spatiowf_smu_nys_f ne_parama>=s atio
 
   >
  =wf_smu_nys_all_params"lass="lisref">wf_smu_nys_all_paramsa>=s[] = {right 2005 Benjamin Herrenschmidt, IBM Corp.=19 id2 L4"19 class="line" nam 2 L4"19>   193ntos        aat class="comment"> */* M
  l ID 2#L/c) Copyright 2005 Benjamin Herrenschmidt, IBM Corp.=1 /spatio<19a href="drivers/macinto19sh/w19dfarm        {right 2005 Benjamin Herrenschmidt, IBM Corp.=19spatiom
  l_idheac       = 2,right 2005 Benjamin Herrenschmidt, IBM Corp.=19 id2 L7"19 class="line" nam 2 L7"19>   19/a>=s                .atio
 
   >
  =imio	=/sprs/macisref">imio	=/heac        = 0x3a0000,right 2005 Benjamin Herrenschmidt, IBM Corp.=19href="dr19ivers/macintosh/windfar19m_pm197a>=s                .atio
 
   >
  =gd"lass="lisref">gda>=s             = 0x15400000,right 2005 Benjamin Herrenschmidt, IBM Corp.=19 id2 L9"19 class="line" nam 2 L9"19>   198a>=s                .atio
 
   >
  =gpclass="lisref">gpa>=s             = 0x00200000,right 2005 Benjamin Herrenschmidt, IBM Corp.=19 the sam1  =/spatiog//mac             = 0x000002f8,right 2005 Benjamin Herrenschmidt, IBM Corp.=200"
	 s t2aat=/spatiooffs=/0/mac        = 0xff38,right 2005 Benjamin Herrenschmidt, IBM Corp.=201"
	 s t2ahowever=/spatio=s                .atio
 
   >
  =ncale0class="lisref">scale0/mac         = 0x0cc8,right 2005 Benjamin Herrenschmidt, IBM Corp.=202"
	 s t2aivers/macintosh/windfar202s/m20lgori                .atio
 
   >
  =offs=/1class="lisref">offs=/1/mac        = 0x0208,right 2005 Benjamin Herrenschmidt, IBM Corp.=203"
	 s t2a class="line" nam 2 L4"203s/m203a>=s                .atio
 
   >
  =ncale1class="lisref">scale1/mac         = 0x07ae,right 2005 Benjamin Herrenschmidt, IBM Corp.=204"
	 s t2aa href="drivers/macinto204s/m20dfarm        },right 2005 Benjamin Herrenschmidt, IBM Corp.=205"
	 s t2a href="drivers/macintos205s/m205ntos        aat class="comment"> */* M
  l ID 3#L/c) Copyright 2005 Benjamin Herrenschmidt, IBM Corp.=20 id2 L7"20 class="line" nam 2 L7"206s/m206farm        {right 2005 Benjamin Herrenschmidt, IBM Corp.=20href="dr20ivers/macintosh/windfar207s/m207a>=s                .atio
 
   >
  =m
  l_id"lass="lisref">m
  l_idheac       = 3,right 2005 Benjamin Herrenschmidt, IBM Corp.=208ref="dr20 class="line" nam 2 L9"208s/m208a>=s                .atio
 
   >
  =imio	=/sprs/macisref">imio	=/heac        = 0x350000,right 2005 Benjamin Herrenschmidt, IBM Corp.=20 the sam20 =/spatiogda>=s             = 0x08e00000,right 2005 Benjamin Herrenschmidt, IBM Corp.=2 1"
	 s t2hat=/spatiogpa>=s             = 0x00566666,right 2005 Benjamin Herrenschmidt, IBM Corp.=2 1"
	 s t2hhowever=/spatio=s                .atio
 
   >
  =grclass="lisref">g//mac             = 0x0000072b,right 2005 Benjamin Herrenschmidt, IBM Corp.=2 2"
	 s t2>=spat class="comment"> 2* The21lgori                .atio
 
   >
  =offs=/0class="lisref">offs=/0/mac        = 0xff38,right 2005 Benjamin Herrenschmidt, IBM Corp.=2  id2 L4"21 class="line" nam 2 L4"21>   213a>=s                .atio
 
   >
  =ncale0class="lisref">scale0/mac         = 0x0cc8,right 2005 Benjamin Herrenschmidt, IBM Corp.=2 /spatio<21a href="drivers/macinto21sh/w214gori                .atio
 
   >
  =offs=/1class="lisref">offs=/1/mac        = 0x0000,right 2005 Benjamin Herrenschmidt, IBM Corp.=2 5"
	 s t21 href="drivers/macintos21h/wi215a>=s                .atio
 
   >
  =ncale1class="lisref">scale1/mac         = 0x0000,right 2005 Benjamin Herrenschmidt, IBM Corp.=2  id2 L7"21 class="line" nam 2 L7"21>   21/a>=s        },right 2005 Benjamin Herrenschmidt, IBM Corp.=2thref="dr21ivers/macintosh/windfar21m_pm217ntos        aat class="comment"> */* M
  l ID 5#L/c) Copyright 2005 Benjamin Herrenschmidt, IBM Corp.=2t id2 L9"21 class="line" nam 2 L9"21>   218farm        {right 2005 Benjamin Herrenschmidt, IBM Corp.=2t the sam21 =/spatiom
  l_idheac       = 5,right 2005 Benjamin Herrenschmidt, IBM Corp.=2>1"
	 s t22at=/spatioimio	=/heac        = 0x3a0000,right 2005 Benjamin Herrenschmidt, IBM Corp.=22ts (note22however=/spatio=s                .atio
 
   >
  =gd"lass="lisref">gda>=s             = 0x15400000,right 2005 Benjamin Herrenschmidt, IBM Corp.=22>   9=/a2==spat class="comment"> 2  The22lgori                .atio
 
   >
  =gpclass="lisref">gpa>=s             = 0x00233333,right 2005 Benjamin Herrenschmidt, IBM Corp.=22 id2 L4"22 class="line" nam 2 L4"22>   223a>=s                .atio
 
   >
  =grclass="lisref">g//mac             = 0x000002f8,right 2005 Benjamin Herrenschmidt, IBM Corp.=22/spatio<22a href="drivers/macinto22sh/w224gori                .atio
 
   >
  =offs=/0class="lisref">offs=/0/mac        = 0x0000,right 2005 Benjamin Herrenschmidt, IBM Corp.=225"
	 s t22 href="drivers/macintos22h/wi225a>=s                .atio
 
   >
  =ncale0class="lisref">scale0/mac         = 0x1000,right 2005 Benjamin Herrenschmidt, IBM Corp.=22 id2 L7"22 class="line" nam 2 L7"22>   22/a>=s                .atio
 
   >
  =offs=/1class="lisref">offs=/1/mac        = 0x0091,right 2005 Benjamin Herrenschmidt, IBM Corp.=22href="dr22ivers/macintosh/windfar22m_pm227a>=s                .atio
 
   >
  =ncale1class="lisref">scale1/mac         = 0x0bae,right 2005 Benjamin Herrenschmidt, IBM Corp.=22 id2 L9"22 class="line" nam 2 L9"22>   228a>=s        },right 2005 Benjamin Herrenschmidt, IBM Corp.=22 the sam22 =/spatio
  =WF_SMU_SYS_FANS_NUM_CONFIGSclass="lisref">WF_SMU_SYS_FANS_NUM_CONFIGSa>=s atio
 
   >
  =ARRAY_SIZEclass="lisref">ARRAY_SIZEa>=s(atio
 
   >
  =wf_smu_nys_all_params"lass="lisref">wf_smu_nys_all_paramsa>=s)resent in the Darwin 8.2 snapshot property li2 ts (note23however=/spatio=snsubmi struc  atio
 
   >
  =wf_smu_nys_f ne_nsuteclass="lisref">wf_smu_nys_f ne_nsutea>=s *atio
 
   >
  =wf_smu_nys_f neclass="lisref">wf_smu_nys_f neheac;right 2005 Benjamin Herrenschmidt, IBM Corp.=23 id2 L4"2  class="line" nam 2 L4"2>>   23/a>=sright 2005 Benjamin Herrenschmidt, IBM Corp.=23/spatio<23a href="drivers/macinto23sh/w23dfarm_pm81.c#L5" id2 L5" cl Windfarm PowerMac thermal control. iMac G5=/spatio9> Lssp ******indfarm PowerMac thermal control. iMac G5=/spatio   23/a>=spat class="comment"> * Rindfarm PowerMac thermal control. iMac G5=/spatio   23/a>=sright 2005 Benjamin Herrenschmidt, IBM Corp.=23 the sam23 =/spatio
  =WF_SMU_CPU_FANS_INTERVALclass="lisref">WF_SMU_CPU_FANS_INTERVALa>=s        1right 2005 Benjamin Herrenschmidt, IBM Corp.=24ts (note24however=/spatio
  =WF_SMU_CPU_FANS_MAX_HISTORYclass="lisref">WF_SMU_CPU_FANS_MAX_HISTORYa>=s     16right 2005 Benjamin Herrenschmidt, IBM Corp.=24href="dr24ivers/macintosh/windfar24 The24lgori#def="epatio
 
   >
  =WF_SMU_CPU_FANS_SIBLING_SCALEclass="lisref">WF_SMU_CPU_FANS_SIBLING_SCALEa>=s   0x00001000right 2005 Benjamin Herrenschmidt, IBM Corp.=24 id2 L4"24 class="line" nam 2 L4"24>   24/a>=s#def="epatio
 
   >
  =WF_SMU_CPU_FANS_SIBLING_OFFSETclass="lisref">WF_SMU_CPU_FANS_SIBLING_OFFSETa>=s  0xfffffb50right 2005 Benjamin Herrenschmidt, IBM Corp.=24/spatio<2aa href="drivers/macinto2ssh/w24dfarmright 2005 Benjamin Herrenschmidt, IBM Corp.=24spatio   >9>aasspc) Copyright 2005 Benjamin Herrenschmidt, IBM Corp.=24 id2 L7"24 class="line" nam 2 L7"24>   24/a>=spat class="comment"> * R/c) Copyright 2005 Benjamin Herrenschmidt, IBM Corp.=24href="dr24ivers/macintosh/windfar24m_pm247goristruc  atio
 
   >
  =wf_smu_cpu_f ne_nsuteclass="lisref">wf_smu_cpu_f ne_nsutea>=s {right 2005 Benjamin Herrenschmidt, IBM Corp.=24 id2 L9"24 class="line" nam 2 L9"24>   248a>=s        9"  ">                  atio
 
   >
  =ticksclass="lisref">ticks/mac;right 2005 Benjamin Herrenschmidt, IBM Corp.=24 the sam24 =/spatios3lgori                     atio
 
   >
  =cpu_s=/po9" vers/macisref">cpu_s=/po9" /mac;right 2005 Benjamin Herrenschmidt, IBM Corp.=2s1"
	 s t25at=/spatios3lgori                     atio
 
   >
  =ncaleclass="lisref">scale/mac;right 2005 Benjamin Herrenschmidt, IBM Corp.=2sts (note25however=/spatio
  =s3ivers/macisref">s3lgori                     atio
 
   >
  =offs=/class="lisref">offs=//mac;right 2005 Benjamin Herrenschmidt, IBM Corp.=2shref="dr25ivers/macintosh/windfar25 The25lgori        struc  atio
 
   >
  =wf_>pu_pid_nsuteclass="lisref">wf_>pu_pid_nsutea>=s atio
 
   >
  =pid"lass="lisref">pidheac;right 2005 Benjamin Herrenschmidt, IBM Corp.=25 id2 L4"25 class="line" nam 2 L4"25>   25/a>=s};right 2005 Benjamin Herrenschmidt, IBM Corp.=25/spatio<25a href="drivers/macinto25sh/w25dfarmright 2005 Benjamin Herrenschmidt, IBM Corp.=25spatiowf_smu_cpu_f ne_nsutea>=s *atio
 
   >
  =wf_smu_cpu_f neclass="lisref">wf_smu_cpu_f neheac;right 2005 Benjamin Herrenschmidt, IBM Corp.=25 id2 L7"25 class="line" nam 2 L7"25>   25/a>=sright 2005 Benjamin Herrenschmidt, IBM Corp.=25href="dr25ivers/macintosh/windfar25m_pm25.c#L8resent in the Darwin 8.2 snapshot property li25 id2 L9"25 class="line" nam 2 L9"25>   25/a>=sright 2005 Benjamin Herrenschmidt, IBM Corp.=25 the sam25 =/spatio/
  *****indfarm PowerMac thermal control. iMac G5=/spatio   26/a>=sright 2005 Benjamin Herrenschmidt, IBM Corp.=26/spatio<26a href="drivers/macinto26sh/w26dfarmnsubmi void atio
 
   >
  =wf_smu_creute_nys_f neclass="lisref">wf_smu_creute_nys_f nea>=s(void)resent in the Darwin 8.2 snapshot property li26spatio>   26/a>=s        struc  atio
 
   >
  =wf_smu_nys_f ne_param"lass="lisref">wf_smu_nys_f ne_parama>=s *atio
 
   >
  =param"lass="lisref">parama>=s = atio
 
   >
  =NULLclass="lisref">NULLheac;right 2005 Benjamin Herrenschmidt, IBM Corp.=26href="dr26ivers/macintosh/windfar26m_pm26.c#L8        struc  atio
 
   >
  =wf_pid_param"lass="lisref">wf_pid_parama>=s atio
 
   >
  =pid_param"lass="lisref">pid_parama>=s;right 2005 Benjamin Herrenschmidt, IBM Corp.=26 id2 L9"26 class="line" nam 2 L9"26>   268a>=s        9"  atio
 
   >
  =isprs/macisref">ia>=s;right 2005 Benjamin Herrenschmidt, IBM Corp.=26 the sam26 =/spatioe 1" cparams=for 2iispm
  l 5/c) Copyright 2005 Benjamin Herrenschmidt, IBM Corp.=27ts (note27however=/spatio
  =isprs/macisref">ia>=s = 0; atio
 
   >
  =isprs/macisref">ia>=s  6=/patio
 
   >
  =WF_SMU_SYS_FANS_NUM_CONFIGSclass="lisref">WF_SMU_SYS_FANS_NUM_CONFIGSa>=s; atio
 
   >
  =isprs/macisref">ia>=s++)resent in the Darwin 8.2 snapshot property li27href="dr27ivers/macintosh/windfar27 The27lgori                if (atio
 
   >
  =wf_smu_nys_all_params"lass="lisref">wf_smu_nys_all_paramsa>=s[atio
 
   >
  =isprs/macisref">ia>=s].atio
 
   >
  =m
  l_id"lass="lisref">m
  l_idheac == atio
 
   >
  =wf_smu_n Hh_m
  lclass="lisref">wf_smu_n Hh_m
  l/mac) {right 2005 Benjamin Herrenschmidt, IBM Corp.=27 id2 L4"27 class="line" nam 2 L4"27>   273a>=s                        atio
 
   >
  =param"lass="lisref">parama>=s = &atio
 
   >
  =wf_smu_nys_all_params"lass="lisref">wf_smu_nys_all_paramsa>=s[atio
 
   >
  =isprs/macisref">ia>=s];right 2005 Benjamin Herrenschmidt, IBM Corp.=27/spatio<27a href="drivers/macinto27sh/w274gori                        breuk;right 2005 Benjamin Herrenschmidt, IBM Corp.=27spatio   27/a>=sright 2005 Benjamin Herrenschmidt, IBM Corp.=2hhref="dr2iivers/macintosh/windfar2mm_pm277ntos        aat class="comment"> */* Nocparams=found, putpf ns"to max 5/c) Copyright 2005 Benjamin Herrenschmidt, IBM Corp.=27 id2 L9"27 class="line" nam 2 L9"27>   278a>=s        9f (atio
 
   >
  =param"lass="lisref">parama>=s == atio
 
   >
  =NULLclass="lisref">NULLheac) {right 2005 Benjamin Herrenschmidt, IBM Corp.=27 the sam27 =/spatiopr>=tkc#L8(atio
 
   >
  =KERN_WARNINGclass="lisref">KERN_WARNINGa>=s apm81.c#L5" istr>=s"s quo=/hmidt, I: System fan">  figdnot found  quo=/i are present in the Darwin 8.2 snapshot property li2 1"
	 s t28at=/spatio=s"s quo=/for 2iispm Hh="epm
  l, max fan"speed\n quo=/i are p);right 2005 Benjamin Herrenschmidt, IBM Corp.=2 ts (note28however=/spatio=s                goto atio
 
   >
  =failclass="lisref">faila>=s;right 2005 Benjamin Herrenschmidt, IBM Corp.=2 href="dr28ivers/macintosh/windfar28 The282ntos        }right 2005 Benjamin Herrenschmidt, IBM Corp.=28 id2 L4"28 class="line" nam 2 L4"28>   28/a>=sright 2005 Benjamin Herrenschmidt, IBM Corp.=28/spatio<28a href="drivers/macinto28sh/w28dfarm        aat class="comment"> */* Alasc & initialize nsute 5/c) Copyright 2005 Benjamin Herrenschmidt, IBM Corp.=28spatiowf_smu_nys_f neheac = atio
 
   >
  =kmalascclass="lisref">kmalascc#L8(sizeof(struc  atio
 
   >
  =wf_smu_nys_f ne_nsuteclass="lisref">wf_smu_nys_f ne_nsutea>=s),right 2005 Benjamin Herrenschmidt, IBM Corp.=28 id2 L7"28 class="line" nam 2 L7"28>   28/a>=s                                  atio
 
   >
  =GFP_KERNELclass="lisref">GFP_KERNELa>=s);right 2005 Benjamin Herrenschmidt, IBM Corp.=2 href="dr28ivers/macintosh/windfar28m_pm287a>=s        9f (atio
 
   >
  =wf_smu_nys_f neclass="lisref">wf_smu_nys_f neheac == atio
 
   >
  =NULLclass="lisref">NULLheac) {right 2005 Benjamin Herrenschmidt, IBM Corp.=28 id2 L9"2  class="line" nam 2 L9"2>>   288a>=s                atio
 
   >
  =pr>=tkclass="lisref">pr>=tkc#L8(atio
 
   >
  =KERN_WARNINGclass="lisref">KERN_WARNINGa>=s apm81.c#L5" istr>=s"s quo=/hmidt, I: Memory alasca>/
  error quo=/i are present in the Darwin 8.2 snapshot property li2  the sam28 =/spatio=s"s quo=/ max fan"speed\n quo=/i are p);right 2005 Benjamin Herrenschmidt, IBM Corp.=2 1"
	 s t29at=/spatiofaila>=s;right 2005 Benjamin Herrenschmidt, IBM Corp.=2 ts (note29however=/spatiowf_smu_nys_f neheac- *=/atio
 
   >
  =ticksclass="lisref">ticks/mac = 1;right 2005 Benjamin Herrenschmidt, IBM Corp.=2  id2 L4"29 class="line" nam 2 L4"29>   293ntos        atio
 
   >
  =wf_smu_nys_f neclass="lisref">wf_smu_nys_f neheac- *=/atio
 
   >
  =ncale0class="lisref">scale0/mac = atio
 
   >
  =param"lass="lisref">parama>=s- *=/atio
 
   >
  =ncale0class="lisref">scale0/mac;right 2005 Benjamin Herrenschmidt, IBM Corp.=2 /spatio<29a href="drivers/macinto29sh/w29dfarm        atio
 
   >
  =wf_smu_nys_f neclass="lisref">wf_smu_nys_f neheac- *=/atio
 
   >
  =offs=/0class="lisref">offs=/0/mac = atio
 
   >
  =param"lass="lisref">parama>=s- *=/atio
 
   >
  =offs=/0class="lisref">offs=/0/mac;right 2005 Benjamin Herrenschmidt, IBM Corp.=29spatiowf_smu_nys_f neheac- *=/atio
 
   >
  =ncale1class="lisref">scale1/mac = atio
 
   >
  =param"lass="lisref">parama>=s- *=/atio
 
   >
  =ncale1class="lisref">scale1/mac;right 2005 Benjamin Herrenschmidt, IBM Corp.=29 id2 L7"29 class="line" nam 2 L7"29>   29/a>=s        atio
 
   >
  =wf_smu_nys_f neclass="lisref">wf_smu_nys_f neheac- *=/atio
 
   >
  =offs=/1class="lisref">offs=/1/mac = atio
 
   >
  =param"lass="lisref">parama>=s- *=/atio
 
   >
  =offs=/1class="lisref">offs=/1/mac;right 2005 Benjamin Herrenschmidt, IBM Corp.=29href="dr29ivers/macintosh/windfar29m_pm29.c#L8resent in the Darwin 8.2 snapshot property li29 id2 L9"29 class="line" nam 2 L9"29>   298a>=s        am81.c#L6" id2 L6" cla/* Fill PIDcparams=5/c) Copyright 2005 Benjamin Herrenschmidt, IBM Corp.=29 the sam2  =/spatiopid_parama>=s.atio
 
   >
  =gd"lass="lisref">gda>=s = atio
 
   >
  =param"lass="lisref">parama>=s- *=/atio
 
   >
  =gd"lass="lisref">gda>=s;right 2005 Benjamin Herrenschmidt, IBM Corp.=300"
	 s t3aat=/spatiopid_parama>=s.atio
 
   >
  =gpclass="lisref">gpa>=s = atio
 
   >
  =param"lass="lisref">parama>=s- *=/atio
 
   >
  =gpclass="lisref">gpa>=s;right 2005 Benjamin Herrenschmidt, IBM Corp.=301"
	 s t3ahowever=/spatio
  =pid_param"lass="lisref">pid_parama>=s.atio
 
   >
  =grclass="lisref">g//mac = atio
 
   >
  =param"lass="lisref">parama>=s- *=/atio
 
   >
  =grclass="lisref">g//mac;right 2005 Benjamin Herrenschmidt, IBM Corp.=302"
	 s t3aivers/macintosh/windfar302s/m302ntos        atio
 
   >
  =pid_param"lass="lisref">pid_parama>=s.atio
 
   >
  =i" er"cosprs/macisref">i" er"co/mac = atio
 
   >
  =WF_SMU_SYS_FANS_INTERVALclass="lisref">WF_SMU_SYS_FANS_INTERVALntos;right 2005 Benjamin Herrenschmidt, IBM Corp.=303"
	 s t3a class="line" nam 2 L4"303s/m303ntos        atio
 
   >
  =pid_param"lass="lisref">pid_parama>=s.atio
 
   >
  =his>ory_le class="lisref">his>ory_le /mac = atio
 
   >
  =WF_SMU_SYS_FANS_HISTORY_SIZEclass="lisref">WF_SMU_SYS_FANS_HISTORY_SIZEntos;right 2005 Benjamin Herrenschmidt, IBM Corp.=304"
	 s t3aa href="drivers/macinto304s/m30dfarm        atio
 
   >
  =pid_param"lass="lisref">pid_parama>=s.atio
 
   >
  =imio	=/sprs/macisref">imio	=/heac = atio
 
   >
  =param"lass="lisref">parama>=s- *=/atio
 
   >
  =imio	=/sprs/macisref">imio	=/heac;right 2005 Benjamin Herrenschmidt, IBM Corp.=305"
	 s t3a href="drivers/macintos305s/m30farm_        atio
 
   >
  =pid_param"lass="lisref">pid_parama>=s.atio
 
   >
  =mm class="lisref">mi /mac = atio
 
   >
  =wf_>   >9>_	=/_mm class="lisref">wf_>   >9>_	=/_mm c#L8(atio
 
   >
  =fan_lystemclass="lisref">fan_lystemheac);right 2005 Benjamin Herrenschmidt, IBM Corp.=30 id2 L7"30 class="line" nam 2 L7"306s/m30/a>=s        atio
 
   >
  =pid_param"lass="lisref">pid_parama>=s.atio
 
   >
  =maxclass="lisref">max/mac = atio
 
   >
  =wf_>   >9>_	=/_maxclass="lisref">wf_>   >9>_	=/_maxc#L8(atio
 
   >
  =fan_lystemclass="lisref">fan_lystemheac);right 2005 Benjamin Herrenschmidt, IBM Corp.=307id2 L7"30ivers/macintosh/windfar307s/m307a>=s        9f (atio
 
   >
  =fan_hdclass="lisref">fan_hdc)ac) {right 2005 Benjamin Herrenschmidt, IBM Corp.=308ref="dr30 class="line" nam 2 L9"308s/m308a>=s                atio
 
   >
  =pid_param"lass="lisref">pid_parama>=s.atio
 
   >
  =mm class="lisref">mi /mac =right 2005 Benjamin Herrenschmidt, IBM Corp.=309ref="dr30 =/spatiomax/mac(atio
 
   >
  =pid_param"lass="lisref">pid_parama>=s.atio
 
   >
  =mm class="lisref">mi /mac, atio
 
   >
  =wf_>   >9>_	=/_mm class="lisref">wf_>   >9>_	=/_mm c#L8(atio
 
   >
  =fan_hdclass="lisref">fan_hdc)ac));right 2005 Benjamin Herrenschmidt, IBM Corp.=3 1"
	 s t3hat=/spatiopid_parama>=s.atio
 
   >
  =maxclass="lisref">max/mac =right 2005 Benjamin Herrenschmidt, IBM Corp.=3 1"
	 s t3hhowever=/spatio=s                        atio
 
   >
  =mm class="lisref">mi /mac(atio
 
   >
  =pid_param"lass="lisref">pid_parama>=s.atio
 
   >
  =maxclass="lisref">max/mac, atio
 
   >
  =wf_>   >9>_	=/_maxclass="lisref">wf_>   >9>_	=/_maxc#L8(atio
 
   >
  =fan_hdclass="lisref">fan_hdc)ac));right 2005 Benjamin Herrenschmidt, IBM Corp.=3 2"
	 s t3>=spat class="comment"> 3* The312ntos        }right 2005 Benjamin Herrenschmidt, IBM Corp.=3  id2 L4"31 class="line" nam 2 L4"31>   313ntos        atio
 
   >
  =wf_pid_initclass="lisref">wf_pid_initc#L8(&atio
 
   >
  =wf_smu_nys_f neclass="lisref">wf_smu_nys_f neheac- *=/atio
 
   >
  =pid"lass="lisref">pidheac, &atio
 
   >
  =pid_param"lass="lisref">pid_parama>=s);right 2005 Benjamin Herrenschmidt, IBM Corp.=3 4"
	 s t31a href="drivers/macinto31sh/w31dfarmright 2005 Benjamin Herrenschmidt, IBM Corp.=3 5"
	 s t31 href="drivers/macintos31h/wi31farm_        atio
 
   >
  =DBGclass="lisref">DBGc#L8(apm81.c#L5" istr>=s"s quo=/hf: System Fan">   >9>ainitialized.\n quo=/i are p);right 2005 Benjamin Herrenschmidt, IBM Corp.=3  id2 L7"31 class="line" nam 2 L7"31>   31/a>=s        atio
 
   >
  =DBGclass="lisref">DBGc#L8(apm81.c#L5" istr>=s"s quo=/    9mio	=d=%d.%03d, mi =%d RPM, max=%d RPM\n quo=/i are p,right 2005 Benjamin Herrenschmidt, IBM Corp.=3thref="dr31ivers/macintosh/windfar31m_pm317a>=s            atio
 
   >
  =FIX32TOPRINTclass="lisref">FIX32TOPRINT/mac(atio
 
   >
  =pid_param"lass="lisref">pid_parama>=s.atio
 
   >
  =imio	=/sprs/macisref">imio	=/heac), atio
 
   >
  =pid_param"lass="lisref">pid_parama>=s.atio
 
   >
  =mm class="lisref">mi /mac, atio
 
   >
  =pid_param"lass="lisref">pid_parama>=s.atio
 
   >
  =maxclass="lisref">max/mac);right 2005 Benjamin Herrenschmidt, IBM Corp.=3 8ref="dr31 class="line" nam 2 L9"31>   318farm        return;right 2005 Benjamin Herrenschmidt, IBM Corp.=3 9ref="dr31 =/spatio1"
	 s t32at=/spatiofaila>=s:none_pm81.c#L9" id2 L9" class="line" nam 2 L93>1"
	 s t32however=/spatio   9=/a3==spat class="comment"> 3  The32lgori        9f (atio
 
   >
  =fan_lystemclass="lisref">fan_lystemheac)right 2005 Benjamin Herrenschmidt, IBM Corp.=32 id2 L4"32 class="line" nam 2 L4"32>   323a>=s                atio
 
   >
  =wf_>   >9>_s=/_maxclass="lisref">wf_>   >9>_s=/_maxc#L8(atio
 
   >
  =fan_lystemclass="lisref">fan_lystemheac);right 2005 Benjamin Herrenschmidt, IBM Corp.=32/spatio<32a href="drivers/macinto32sh/w324gori        9f (atio
 
   >
  =fan_hdclass="lisref">fan_hdc)ac)right 2005 Benjamin Herrenschmidt, IBM Corp.=325"
	 s t32 href="drivers/macintos32h/wi325a>=s                atio
 
   >
  =wf_>   >9>_s=/_maxclass="lisref">wf_>   >9>_s=/_maxc#L8(atio
 
   >
  =fan_hdclass="lisref">fan_hdc)ac);right 2005 Benjamin Herrenschmidt, IBM Corp.=32 id2 L7"32 class="line" nam 2 L7"32>   32/a>=s}right 2005 Benjamin Herrenschmidt, IBM Corp.=32href="dr32ivers/macintosh/windfar32m_pm32.c#L8resent in the Darwin 8.2 snapshot property li32 id2 L9"32 class="line" nam 2 L9"32>   328goristubmi void atio
 
   >
  =wf_smu_nys_f ne_tickclass="lisref">wf_smu_nys_f ne_tickc#L8(struc  atio
 
   >
  =wf_smu_nys_f ne_nsuteclass="lisref">wf_smu_nys_f ne_nsutea>=s *atio
 
   >
  =stclass="lisref">sta>=s)right 2005 Benjamin Herrenschmidt, IBM Corp.=329ref="dr32 =/spatios3lgori atio
 
   >
  =new_s=/po9" vers/macisref">new_s=/po9" /mac, atio
 
   >
  =tempclass="lisref">temp/mac, atio
 
   >
  =scaledclass="lisref">scaled/mac, atio
 
   >
  =cpumio	=/sprs/macisref">cpumio	=/heac;right 2005 Benjamin Herrenschmidt, IBM Corp.=3 ts (note33however=/spatio=s        9"  atio
 
   >
  =rcclass="lisref">rcheac;right 2005 Benjamin Herrenschmidt, IBM Corp.=3 >   9=/a33ivers/macintosh/windfar33 The33lgoriright 2005 Benjamin Herrenschmidt, IBM Corp.=33 id2 L4"3  class="line" nam 2 L4"3>>   333gori        9f (--atio
 
   >
  =stclass="lisref">sta>=s- *=/atio
 
   >
  =ticksclass="lisref">ticks/mac != 0) {right 2005 Benjamin Herrenschmidt, IBM Corp.=33/spatio<33a href="drivers/macinto33sh/w334gori                9f (atio
 
   >
  =wf_smu_readjustclass="lisref">wf_smu_readjusta>=s)right 2005 Benjamin Herrenschmidt, IBM Corp.=33spatioreadjusta>=s;right 2005 Benjamin Herrenschmidt, IBM Corp.=3  id2 L7"33 class="line" nam 2 L7"33>   33/a>=s                return;right 2005 Benjamin Herrenschmidt, IBM Corp.=33href="dr33ivers/macintosh/windfar33m_pm337a>=s        }right 2005 Benjamin Herrenschmidt, IBM Corp.=33 id2 L9"33 class="line" nam 2 L9"33>   33/a>=s        atio
 
   >
  =stclass="lisref">sta>=s- *=/atio
 
   >
  =ticksclass="lisref">ticks/mac = atio
 
   >
  =WF_SMU_SYS_FANS_INTERVALclass="lisref">WF_SMU_SYS_FANS_INTERVALntos;right 2005 Benjamin Herrenschmidt, IBM Corp.=33 the sam33 =/spatiorcheac = atio
 
   >
  =wf_sensor_	=/sprs/macisref">wf_sensor_	=/c#L8(atio
 
   >
  =sensor_hd_tempclass="lisref">sensor_hd_tempheac, &atio
 
   >
  =tempclass="lisref">temp/mac);right 2005 Benjamin Herrenschmidt, IBM Corp.=34ts (note34however=/spatio
  =rcclass="lisref">rcheac) {right 2005 Benjamin Herrenschmidt, IBM Corp.=34href="dr34ivers/macintosh/windfar34 The34lgori                atio
 
   >
  =pr>=tkclass="lisref">pr>=tkc#L8(atio
 
   >
  =KERN_WARNINGclass="lisref">KERN_WARNINGa>=s apm81.c#L5" istr>=s"s quo=/hmidt, I: HD temp sensor error %d\n quo=/i are p,right 2005 Benjamin Herrenschmidt, IBM Corp.=34 id2 L4"34 class="line" nam 2 L4"34>   343a>=s                       atio
 
   >
  =rcclass="lisref">rcheac);right 2005 Benjamin Herrenschmidt, IBM Corp.=34/spatio<3aa href="drivers/macinto3ssh/w344gori                atio
 
   >
  =wf_smu_failure_nsuteclass="lisref">wf_smu_failure_nsutegori |= atio
 
   >
  =FAILURE_SENSORclass="lisref">FAILURE_SENSORntos;right 2005 Benjamin Herrenschmidt, IBM Corp.=34spatio   346a>=s        }right 2005 Benjamin Herrenschmidt, IBM Corp.=34href="dr34ivers/macintosh/windfar34m_pm34.c#L8resent in the Darwin 8.2 snapshot property li34 id2 L9"34 class="line" nam 2 L9"34>   34/a>=s        atio
 
   >
  =DBGclass="lisref">DBGc#L8(apm81.c#L5" istr>=s"s quo=/hf_smu: System Fans tick ! HD temp: %d.%03d\n quo=/i are p,right 2005 Benjamin Herrenschmidt, IBM Corp.=34 the sam34 =/spatioFIX32TOPRINT/mac(atio
 
   >
  =tempclass="lisref">temp/mac));right 2005 Benjamin Herrenschmidt, IBM Corp.=3s1"
	 s t35at=/spatiotemp/mac  *=/ (atio
 
   >
  =stclass="lisref">sta>=s- *=/atio
 
   >
  =pid"lass="lisref">pidheac.atio
 
   >
  =param"lass="lisref">parama>=s.atio
 
   >
  =imio	=/sprs/macisref">imio	=/heac + 0x50000))right 2005 Benjamin Herrenschmidt, IBM Corp.=3shref="dr35ivers/macintosh/windfar35 The35lgori                atio
 
   >
  =wf_smu_failure_nsuteclass="lisref">wf_smu_failure_nsutegori |= atio
 
   >
  =FAILURE_OVERTEMPclass="lisref">FAILURE_OVERTEMPntos;right 2005 Benjamin Herrenschmidt, IBM Corp.=35 id2 L4"35 class="line" nam 2 L4"35>   35/a>=sright 2005 Benjamin Herrenschmidt, IBM Corp.=35/spatio<35a href="drivers/macinto35sh/w35dfarm        atio
 
   >
  =new_s=/po9" vers/macisref">new_s=/po9" /mac = atio
 
   >
  =wf_pid_ru class="lisref">wf_pid_ru c#L8(&atio
 
   >
  =stclass="lisref">sta>=s- *=/atio
 
   >
  =pid"lass="lisref">pidheac, atio
 
   >
  =tempclass="lisref">temp/mac);right 2005 Benjamin Herrenschmidt, IBM Corp.=3sspatio   35/a>=s        atio
 
   >
  =DBGclass="lisref">DBGc#L8(apm81.c#L5" istr>=s"s quo=/hf_smu: new_s=/po9" : %d RPM\n quo=/i are p, (9" )atio
 
   >
  =new_s=/po9" vers/macisref">new_s=/po9" /mac);right 2005 Benjamin Herrenschmidt, IBM Corp.=3shref="dr35ivers/macintosh/windfar35m_pm35.c#L8resent in the Darwin 8.2 snapshot property li35 id2 L9"35 class="line" nam 2 L9"35>   35/a>=s        atio
 
   >
  =scaledclass="lisref">scaled/mac = ((((atio
 
   >
  =s6a href="drsref">s6dfarm)atio
 
   >
  =new_s=/po9" vers/macisref">new_s=/po9" /mac) * (atio
 
   >
  =s6a href="drsref">s6dfarm)atio
 
   >
  =stclass="lisref">sta>=s- *=/atio
 
   >
  =ncale0class="lisref">scale0/mac)  *=/ *=/ 12) + atio
 
   >
  =stclass="lisref">sta>=s- *=/atio
 
   >
  =offs=/0class="lisref">offs=/0/mac;right 2005 Benjamin Herrenschmidt, IBM Corp.=35 the sam35 =/spatioDBGc#L8(apm81.c#L5" istr>=s"s quo=/hf_smu: scaled s=/po9" : %d RPM\n quo=/i are p, (9" )atio
 
   >
  =scaledclass="lisref">scaled/mac);right 2005 Benjamin Herrenschmidt, IBM Corp.=36ts (note36however=/spatio
  =cpumio	=/sprs/macisref">cpumio	=/heac = atio
 
   >
  =wf_smu_cpu_f neclass="lisref">wf_smu_cpu_f neheac ? atio
 
   >
  =wf_smu_cpu_f neclass="lisref">wf_smu_cpu_f neheac- *=/atio
 
   >
  =pid"lass="lisref">pidheac.atio
 
   >
  =mio	=/sprs/macisref">mio	=/heac : 0;right 2005 Benjamin Herrenschmidt, IBM Corp.=36 id2 L4"36 class="line" nam 2 L4"36>   363ntos        atio
 
   >
  =cpumio	=/sprs/macisref">cpumio	=/heac = ((((atio
 
   >
  =s6a href="drsref">s6dfarm)atio
 
   >
  =cpumio	=/sprs/macisref">cpumio	=/heac) * (atio
 
   >
  =s6a href="drsref">s6dfarm)atio
 
   >
  =stclass="lisref">sta>=s- *=/atio
 
   >
  =ncale1class="lisref">scale1/mac)  *=/ *=/ 12) + atio
 
   >
  =stclass="lisref">sta>=s- *=/atio
 
   >
  =offs=/1class="lisref">offs=/1/mac;right 2005 Benjamin Herrenschmidt, IBM Corp.=36/spatio<36a href="drivers/macinto36sh/w36dfarm        atio
 
   >
  =scaledclass="lisref">scaled/mac = atio
 
   >
  =maxclass="lisref">max/mac(atio
 
   >
  =scaledclass="lisref">scaled/mac, atio
 
   >
  =cpumio	=/sprs/macisref">cpumio	=/heac);right 2005 Benjamin Herrenschmidt, IBM Corp.=36spatioscaled/mac = atio
 
   >
  =maxclass="lisref">max/mac(atio
 
   >
  =scaledclass="lisref">scaled/mac, atio
 
   >
  =stclass="lisref">sta>=s- *=/atio
 
   >
  =pid"lass="lisref">pidheac.atio
 
   >
  =param"lass="lisref">parama>=s.atio
 
   >
  =mm class="lisref">mi /mac);right 2005 Benjamin Herrenschmidt, IBM Corp.=36 id2 L7"3  class="line" nam 2 L7"3>>   36/a>=s        atio
 
   >
  =scaledclass="lisref">scaled/mac = atio
 
   >
  =mm class="lisref">mi /mac(atio
 
   >
  =scaledclass="lisref">scaled/mac, atio
 
   >
  =stclass="lisref">sta>=s- *=/atio
 
   >
  =pid"lass="lisref">pidheac.atio
 
   >
  =param"lass="lisref">parama>=s.atio
 
   >
  =maxclass="lisref">max/mac);right 2005 Benjamin Herrenschmidt, IBM Corp.=36href="dr36ivers/macintosh/windfar36m_pm36.c#L8resent in the Darwin 8.2 snapshot property li36 id2 L9"36 class="line" nam 2 L9"36>   36/a>=s        atio
 
   >
  =DBGclass="lisref">DBGc#L8(apm81.c#L5" istr>=s"s quo=/hf_smu: adjusted s=/po9" : %d RPM\n quo=/i are p, (9" )atio
 
   >
  =scaledclass="lisref">scaled/mac);right 2005 Benjamin Herrenschmidt, IBM Corp.=36 the sam36 =/spatiosta>=s- *=/atio
 
   >
  =nys_s=/po9" vers/macisref">nys_s=/po9" /mac == atio
 
   >
  =scaledclass="lisref">scaled/mac && atio
 
   >
  =new_s=/po9" vers/macisref">new_s=/po9" /mac == atio
 
   >
  =stclass="lisref">sta>=s- *=/atio
 
   >
  =hd_s=/po9" vers/macisref">hd_s=/po9" a>=s)right 2005 Benjamin Herrenschmidt, IBM Corp.=37ts (note37however=/spatio=s                return;right 2005 Benjamin Herrenschmidt, IBM Corp.=37href="dr37ivers/macintosh/windfar37 The372ntos        atio
 
   >
  =stclass="lisref">sta>=s- *=/atio
 
   >
  =nys_s=/po9" vers/macisref">nys_s=/po9" /mac = atio
 
   >
  =scaledclass="lisref">scaled/mac;right 2005 Benjamin Herrenschmidt, IBM Corp.=37 id2 L4"37 class="line" nam 2 L4"37>   373ntos        atio
 
   >
  =stclass="lisref">sta>=s- *=/atio
 
   >
  =hd_s=/po9" vers/macisref">hd_s=/po9" a>=s = atio
 
   >
  =new_s=/po9" vers/macisref">new_s=/po9" /mac;right 2005 Benjamin Herrenschmidt, IBM Corp.=37/spatio<37a href="drivers/macinto37sh/w374gori atio
 
   >
  =readjustclass="lisref">readjusta>=s:none_pm81.c#L9" id2 L9" class="line" nam 2 L937spatiofan_lystemheac && atio
 
   >
  =wf_smu_failure_nsuteclass="lisref">wf_smu_failure_nsutegori == 0) {right 2005 Benjamin Herrenschmidt, IBM Corp.=37 id2 L7"37 class="line" nam 2 L7"37>   37/a>=s                atio
 
   >
  =rcclass="lisref">rcheac = atio
 
   >
  =wf_>   >9>_s=/class="lisref">wf_>   >9>_s=//mac(atio
 
   >
  =fan_lystemclass="lisref">fan_lystemheac, atio
 
   >
  =stclass="lisref">sta>=s- *=/atio
 
   >
  =nys_s=/po9" vers/macisref">nys_s=/po9" /mac);right 2005 Benjamin Herrenschmidt, IBM Corp.=3hhref="dr3iivers/macintosh/windfar3mm_pm377a>=s                9f (atio
 
   >
  =rcclass="lisref">rcheac) {right 2005 Benjamin Herrenschmidt, IBM Corp.=37 id2 L9"37 class="line" nam 2 L9"37>   378a>=s                        atio
 
   >
  =pr>=tkclass="lisref">pr>=tkc#L8(atio
 
   >
  =KERN_WARNINGclass="lisref">KERN_WARNINGa>=s apm81.c#L5" istr>=s"s quo=/hmidt, I: Sys fan"error %d\n quo=/i are p,right 2005 Benjamin Herrenschmidt, IBM Corp.=37 the sam37 =/spatiorcheac);right 2005 Benjamin Herrenschmidt, IBM Corp.=3 1"
	 s t38at=/spatiowf_smu_failure_nsutegori |= atio
 
   >
  =FAILURE_FANclass="lisref">FAILURE_FAN/mac;right 2005 Benjamin Herrenschmidt, IBM Corp.=3 ts (note38however=/spatio=s                }right 2005 Benjamin Herrenschmidt, IBM Corp.=3 href="dr38ivers/macintosh/windfar38 The382ntos        }right 2005 Benjamin Herrenschmidt, IBM Corp.=38 id2 L4"38 class="line" nam 2 L4"38>   383gori        9f (atio
 
   >
  =fan_hdclass="lisref">fan_hdc)ac && atio
 
   >
  =wf_smu_failure_nsuteclass="lisref">wf_smu_failure_nsutegori == 0) {right 2005 Benjamin Herrenschmidt, IBM Corp.=38/spatio<38a href="drivers/macinto38sh/w38dfarm                atio
 
   >
  =rcclass="lisref">rcheac = atio
 
   >
  =wf_>   >9>_s=/class="lisref">wf_>   >9>_s=//mac(atio
 
   >
  =fan_hdclass="lisref">fan_hdc)ac, atio
 
   >
  =stclass="lisref">sta>=s- *=/atio
 
   >
  =hd_s=/po9" vers/macisref">hd_s=/po9" a>=s);right 2005 Benjamin Herrenschmidt, IBM Corp.=3 spatiorcheac) {right 2005 Benjamin Herrenschmidt, IBM Corp.=38 id2 L7"38 class="line" nam 2 L7"38>   38/a>=s                        atio
 
   >
  =pr>=tkclass="lisref">pr>=tkc#L8(atio
 
   >
  =KERN_WARNINGclass="lisref">KERN_WARNINGa>=s apm81.c#L5" istr>=s"s quo=/hmidt, I: HD fan"error %d\n quo=/i are p,right 2005 Benjamin Herrenschmidt, IBM Corp.=3 href="dr38ivers/macintosh/windfar38m_pm387a>=s                               atio
 
   >
  =rcclass="lisref">rcheac);right 2005 Benjamin Herrenschmidt, IBM Corp.=3  id2 L9"3  class="line" nam 2 L9"3>>   388a>=s                        atio
 
   >
  =wf_smu_failure_nsuteclass="lisref">wf_smu_failure_nsutegori |= atio
 
   >
  =FAILURE_FANclass="lisref">FAILURE_FAN/mac;right 2005 Benjamin Herrenschmidt, IBM Corp.=3  the sam38 =/spatio   393ntosnsubmi void atio
 
   >
  =wf_smu_creute_cpu_f neclass="lisref">wf_smu_creute_cpu_f nec#L8(void)resent in the Darwin 8.2 snapshot property li3 /spatio<39a href="drivers/macinto39sh/w39dfarm{right 2005 Benjamin Herrenschmidt, IBM Corp.=39spatiowf_>pu_pid_paramgori atio
 
   >
  =pid_param"lass="lisref">pid_parama>=s;right 2005 Benjamin Herrenschmidt, IBM Corp.=39 id2 L7"39 class="line" nam 2 L7"39>   39/a>=s        >  st struc  atio
 
   >
  =smu_ndbp_headerclass="lisref">smu_ndbp_headera>=s *atio
 
   >
  =hdrclass="lisref">hdra>=s;right 2005 Benjamin Herrenschmidt, IBM Corp.=39href="dr39ivers/macintosh/windfar39m_pm39.c#L8        struc  atio
 
   >
  =smu_ndbp_>pupiddataclass="lisref">smu_ndbp_>pupiddataa>=s *atio
 
   >
  =piddataclass="lisref">piddataa>=s;right 2005 Benjamin Herrenschmidt, IBM Corp.=39 id2 L9"39 class="line" nam 2 L9"39>   398a>=s        struc  atio
 
   >
  =smu_ndbp_fvtclass="lisref">smu_ndbp_fvta>=s *atio
 
   >
  =fvtclass="lisref">fvta>=s;right 2005 Benjamin Herrenschmidt, IBM Corp.=39 the sam3  =/spatios3lgori atio
 
   >
  =tmaxclass="lisref">tmax/mac, atio
 
   >
  =tdeltaclass="lisref">tdelta/mac, atio
 
   >
  =maxpowclass="lisref">maxpow/mac, atio
 
   >
  =powadjclass="lisref">powadja>=s;right 2005 Benjamin Herrenschmidt, IBM Corp.=400"
	 s t4aat=/spatioe 1" cPIDcparams=in SMU SBD=5/c) Copyright 2005 Benjamin Herrenschmidt, IBM Corp.=402"
	 s t4aivers/macintosh/windfar402s/m402ntos        atio
 
   >
  =hdrclass="lisref">hdra>=s = atio
 
   >
  =smu_	=/_ndb_parti>/
 class="lisref">smu_	=/_ndb_parti>/
 c#L8(atio
 
   >
  =SMU_SDB_CPUPIDDATA_IDclass="lisref">SMU_SDB_CPUPIDDATA_ID/mac, atio
 
   >
  =NULLclass="lisref">NULLheac);right 2005 Benjamin Herrenschmidt, IBM Corp.=403"
	 s t4a class="line" nam 2 L4"403s/m403gori        9f (atio
 
   >
  =hdrclass="lisref">hdra>=s == 0) {right 2005 Benjamin Herrenschmidt, IBM Corp.=404"
	 s t4aa href="drivers/macinto404s/m40dfarm                atio
 
   >
  =pr>=tkclass="lisref">pr>=tkc#L8(atio
 
   >
  =KERN_WARNINGclass="lisref">KERN_WARNINGa>=s apm81.c#L5" istr>=s"s quo=/hmidt, I: CPUcPIDcfan">  figdnot found  quo=/i are present in the Darwin 8.2 snapshot property li405"
	 s t4a href="drivers/macintos405s/m405a>=s                       apm81.c#L5" istr>=s"s quo=/max fan"speed\n quo=/i are p);right 2005 Benjamin Herrenschmidt, IBM Corp.=40 id2 L7"40 class="line" nam 2 L7"406s/m40/a>=s                goto atio
 
   >
  =failclass="lisref">faila>=s;right 2005 Benjamin Herrenschmidt, IBM Corp.=407id2 L7"40ivers/macintosh/windfar407s/m407a>=s        }right 2005 Benjamin Herrenschmidt, IBM Corp.=408ref="dr40 class="line" nam 2 L9"408s/m40/a>=s        atio
 
   >
  =piddataclass="lisref">piddataa>=s = (struc  atio
 
   >
  =smu_ndbp_>pupiddataclass="lisref">smu_ndbp_>pupiddataa>=s *)&atio
 
   >
  =hdrclass="lisref">hdra>=s[1];right 2005 Benjamin Herrenschmidt, IBM Corp.=409ref="dr40 =/spatio=spat class="comment"> 4* The41lgorithm used is 36Das 312
 ########*/c) Copyright 2005 Benjamin Herrenschmidt, IBM Corp.=4  id2 L4"41 class="line" nam 2 L4"41>   413ntos        atio
 
   >
  =hdrclass="lisref">hdra>=s = atio
 
   >
  =smu_	=/_ndb_parti>/
 class="lisref">smu_	=/_ndb_parti>/
 c#L8(atio
 
   >
  =SMU_SDB_FVT_IDclass="lisref">SMU_SDB_FVT_ID/mac, atio
 
   >
  =NULLclass="lisref">NULLheac);right 2005 Benjamin Herrenschmidt, IBM Corp.=4 4"
	 s t41a href="drivers/macinto41sh/w414gori        9f (atio
 
   >
  =hdrclass="lisref">hdra>=s) {right 2005 Benjamin Herrenschmidt, IBM Corp.=4 5"
	 s t41 href="drivers/macintos41h/wi415a>=s                atio
 
   >
  =fvtclass="lisref">fvta>=s = (struc  atio
 
   >
  =smu_ndbp_fvtclass="lisref">smu_ndbp_fvta>=s *)&atio
 
   >
  =hdrclass="lisref">hdra>=s[1];right 2005 Benjamin Herrenschmidt, IBM Corp.=4  id2 L7"41 class="line" nam 2 L7"41>   41/a>=s                atio
 
   >
  =tmaxclass="lisref">tmax/mac = ((atio
 
   >
  =s3ivers/macisref">s3lgori)atio
 
   >
  =fvtclass="lisref">fvta>=s- *=/atio
 
   >
  =maxtempclass="lisref">maxtempa>=s)  6=/ 6=/p16;right 2005 Benjamin Herrenschmidt, IBM Corp.=4 7id2 L7"41ivers/macintosh/windfar41m_pm417a>=s        } elseright 2005 Benjamin Herrenschmidt, IBM Corp.=4 8ref="dr41 class="line" nam 2 L9"41>   418a>=s                atio
 
   >
  =tmaxclass="lisref">tmax/mac = 0x5e0000; am81.c#L6" id2 L6" cla/* 94 degree default#*/c) Copyright 2005 Benjamin Herrenschmidt, IBM Corp.=4 9ref="dr41 =/spatio1"
	 s t42at=/spatio1"
	 s t42however=/spatio
  =wf_smu_cpu_f neclass="lisref">wf_smu_cpu_f neheac = atio
 
   >
  =kmalascclass="lisref">kmalascc#L8(sizeof(struc  atio
 
   >
  =wf_smu_cpu_f ne_nsuteclass="lisref">wf_smu_cpu_f ne_nsutea>=s),right 2005 Benjamin Herrenschmidt, IBM Corp.=42>   9=/a4==spat class="comment"> 4  The42lgori                                  atio
 
   >
  =GFP_KERNELclass="lisref">GFP_KERNELa>=s);right 2005 Benjamin Herrenschmidt, IBM Corp.=42 id2 L4"42 class="line" nam 2 L4"42>   423gori        9f (atio
 
   >
  =wf_smu_cpu_f neclass="lisref">wf_smu_cpu_f neheac == atio
 
   >
  =NULLclass="lisref">NULLheac)right 2005 Benjamin Herrenschmidt, IBM Corp.=424"
	 s t42a href="drivers/macinto42sh/w42dfarm                goto atio
 
   >
  =failclass="lisref">faila>=s;right 2005 Benjamin Herrenschmidt, IBM Corp.=425"
	 s t42 href="drivers/macintos42h/wi42farm_        atio
 
   >
  =wf_smu_cpu_f neclass="lisref">wf_smu_cpu_f neheac- *=/atio
 
   >
  =ticksclass="lisref">ticks/mac = 1;right 2005 Benjamin Herrenschmidt, IBM Corp.=42 id2 L7"42 class="line" nam 2 L7"42>   42/a>=sright 2005 Benjamin Herrenschmidt, IBM Corp.=42href="dr42ivers/macintosh/windfar42m_pm427arm_        atio
 
   >
  =wf_smu_cpu_f neclass="lisref">wf_smu_cpu_f neheac- *=/atio
 
   >
  =scalevers/macisref">scaleheac = atio
 
   >
  =WF_SMU_CPU_FANS_SIBLING_SCALEvers/macisref">WF_SMU_CPU_FANS_SIBLING_SCALEa>=s;right 2005 Benjamin Herrenschmidt, IBM Corp.=428ref="dr42 class="line" nam 2 L9"42>   42/a>=s        atio
 
   >
  =wf_smu_cpu_f neclass="lisref">wf_smu_cpu_f neheac- *=/atio
 
   >
  =offs=/class="lisref">offs=/heac = atio
 
   >
  =WF_SMU_CPU_FANS_SIBLING_OFFSETclass="lisref">WF_SMU_CPU_FANS_SIBLING_OFFSETa>=s;right 2005 Benjamin Herrenschmidt, IBM Corp.=429ref="dr42 =/spatio
  =pid_param"lass="lisref">pid_parama>=s.atio
 
   >
  =i" er"cosprs/macisref">i" er"co/mac = atio
 
   >
  =WF_SMU_CPU_FANS_INTERVALclass="lisref">WF_SMU_CPU_FANS_INTERVALa>=s;right 2005 Benjamin Herrenschmidt, IBM Corp.=4 >   9=/a43ivers/macintosh/windfar43 The432ntos        atio
 
   >
  =pid_param"lass="lisref">pid_parama>=s.atio
 
   >
  =his>ory_le class="lisref">his>ory_le /mac = atio
 
   >
  =piddataclass="lisref">piddataa>=s- *=/atio
 
   >
  =his>ory_le class="lisref">his>ory_le /mac;right 2005 Benjamin Herrenschmidt, IBM Corp.=4  id2 L4"4  class="line" nam 2 L4"4>>   433gori        9f (atio
 
   >
  =pid_param"lass="lisref">pid_parama>=s.atio
 
   >
  =his>ory_le class="lisref">his>ory_le /mac  *=/ atio
 
   >
  =WF_CPU_PID_MAX_HISTORYclass="lisref">WF_CPU_PID_MAX_HISTORYa>=s) {right 2005 Benjamin Herrenschmidt, IBM Corp.=43/spatio<43a href="drivers/macinto43sh/w434gori                atio
 
   >
  =pr>=tkclass="lisref">pr>=tkc#L8(atio
 
   >
  =KERN_WARNINGclass="lisref">KERN_WARNINGa>=s apm81.c#L5" istr>=s"s quo=/hmidt, I: His>ory size onjaflow on  quo=/i are present in the Darwin 8.2 snapshot property li43spatio=s"s quo=/CPUc>   >9>aloop (%d)\n quo=/i are p, atio
 
   >
  =piddataclass="lisref">piddataa>=s- *=/atio
 
   >
  =his>ory_le class="lisref">his>ory_le /mac);right 2005 Benjamin Herrenschmidt, IBM Corp.=4  id2 L7"43 class="line" nam 2 L7"43>   43/a>=s                atio
 
   >
  =pid_param"lass="lisref">pid_parama>=s.atio
 
   >
  =his>ory_le class="lisref">his>ory_le /mac = atio
 
   >
  =WF_CPU_PID_MAX_HISTORYclass="lisref">WF_CPU_PID_MAX_HISTORYa>=s;right 2005 Benjamin Herrenschmidt, IBM Corp.=4 href="dr43ivers/macintosh/windfar43m_pm437a>=s        }right 2005 Benjamin Herrenschmidt, IBM Corp.=43 id2 L9"43 class="line" nam 2 L9"43>   43/a>=s        atio
 
   >
  =pid_param"lass="lisref">pid_parama>=s.atio
 
   >
  =gd"lass="lisref">gda>=s = atio
 
   >
  =piddataclass="lisref">piddataa>=s- *=/atio
 
   >
  =gd"lass="lisref">gda>=s;right 2005 Benjamin Herrenschmidt, IBM Corp.=43 the sam43 =/spatiopid_parama>=s.atio
 
   >
  =gpclass="lisref">gpa>=s = atio
 
   >
  =piddataclass="lisref">piddataa>=s- *=/atio
 
   >
  =gpclass="lisref">gpa>=s;right 2005 Benjamin Herrenschmidt, IBM Corp.=441"
	 s t44at=/spatiopid_parama>=s.atio
 
   >
  =grclass="lisref">g//mac = atio
 
   >
  =piddataclass="lisref">piddataa>=s- *=/atio
 
   >
  =grclass="lisref">g//mac / atio
 
   >
  =pid_param"lass="lisref">pid_parama>=s.atio
 
   >
  =his>ory_le class="lisref">his>ory_le /mac;right 2005 Benjamin Herrenschmidt, IBM Corp.=44ts (note44however=/spatio
  =tdeltaclass="lisref">tdelta/mac = ((atio
 
   >
  =s3ivers/macisref">s3lgori)atio
 
   >
  =piddataclass="lisref">piddataa>=s- *=/atio
 
   >
  =mio	=/_temp_deltaclass="lisref">tio	=/_temp_deltaa>=s)  6=/ 6=/p16;right 2005 Benjamin Herrenschmidt, IBM Corp.=44 id2 L4"44 class="line" nam 2 L4"44>   443ntos        atio
 
   >
  =maxpowclass="lisref">maxpow/mac = ((atio
 
   >
  =s3ivers/macisref">s3lgori)atio
 
   >
  =piddataclass="lisref">piddataa>=s- *=/atio
 
   >
  =max_powerclass="lisref">max_powera>=s)  6=/ 6=/p16;right 2005 Benjamin Herrenschmidt, IBM Corp.=44/spatio<4aa href="drivers/macinto4ssh/w444gori        atio
 
   >
  =powadjclass="lisref">powadja>=s = ((atio
 
   >
  =s3ivers/macisref">s3lgori)atio
 
   >
  =piddataclass="lisref">piddataa>=s- *=/atio
 
   >
  =power_adjclass="lisref">power_adja>=s)  6=/ 6=/p16;right 2005 Benjamin Herrenschmidt, IBM Corp.=44spatio   44/a>=s        atio
 
   >
  =pid_param"lass="lisref">pid_parama>=s.atio
 
   >
  =tmaxclass="lisref">tmax/mac = atio
 
   >
  =tmaxclass="lisref">tmax/mac;right 2005 Benjamin Herrenschmidt, IBM Corp.=44href="dr44ivers/macintosh/windfar44m_pm447arm_        atio
 
   >
  =pid_param"lass="lisref">pid_parama>=s.atio
 
   >
  =tmio	=/sprs/macisref">mmio	=/heac = atio
 
   >
  =tmaxclass="lisref">tmax/mac - atio
 
   >
  =tdeltaclass="lisref">tdelta/mac;right 2005 Benjamin Herrenschmidt, IBM Corp.=44 id2 L9"44 class="line" nam 2 L9"44>   44/a>=s        atio
 
   >
  =pid_param"lass="lisref">pid_parama>=s.atio
 
   >
  =pmaxadjclass="lisref">pmaxadjheac = atio
 
   >
  =maxpowclass="lisref">maxpow/mac - atio
 
   >
  =powadjclass="lisref">powadja>=s;right 2005 Benjamin Herrenschmidt, IBM Corp.=44 the sam44 =/spatiopid_parama>=s.atio
 
   >
  =mm class="lisref">mi /mac = atio
 
   >
  =wf_>   >9>_	=/_mm class="lisref">wf_>   >9>_	=/_mm c#L8(atio
 
   >
  =fan_cpu_mam class="lisref">fan_cpu_mam /mac);right 2005 Benjamin Herrenschmidt, IBM Corp.=4sts (note45however=/spatio
  =pid_param"lass="lisref">pid_parama>=s.atio
 
   >
  =maxclass="lisref">max/mac = atio
 
   >
  =wf_>   >9>_	=/_maxclass="lisref">wf_>   >9>_	=/_maxc#L8(atio
 
   >
  =fan_cpu_mam class="lisref">fan_cpu_mam /mac);right 2005 Benjamin Herrenschmidt, IBM Corp.=4shref="dr45ivers/macintosh/windfar45 The45lgoriright 2005 Benjamin Herrenschmidt, IBM Corp.=45 id2 L4"45 class="line" nam 2 L4"45>   453ntos        atio
 
   >
  =wf_>pu_pid_initclass="lisref">wf_>pu_pid_initc#L8(&atio
 
   >
  =wf_smu_cpu_f neclass="lisref">wf_smu_cpu_f neheac- *=/atio
 
   >
  =pid"lass="lisref">pidheac, &atio
 
   >
  =pid_param"lass="lisref">pid_parama>=s);right 2005 Benjamin Herrenschmidt, IBM Corp.=45/spatio<45a href="drivers/macinto45sh/w45dfarmright 2005 Benjamin Herrenschmidt, IBM Corp.=4sspatioDBGc#L8(apm81.c#L5" istr>=s"s quo=/hf: CPUcFan">   >9>ainitialized.\n quo=/i are p);right 2005 Benjamin Herrenschmidt, IBM Corp.=4s id2 L7"45 class="line" nam 2 L7"45>   45/a>=s        atio
 
   >
  =DBGclass="lisref">DBGc#L8(apm81.c#L5" istr>=s"s quo=/    tmio	=d=%d.%03d, tmax=%d.%03d, mi =%d RPM, max=%d RPM\n quo=/i are p,right 2005 Benjamin Herrenschmidt, IBM Corp.=4shref="dr45ivers/macintosh/windfar45m_pm457a>=s            atio
 
   >
  =FIX32TOPRINTclass="lisref">FIX32TOPRINT/mac(atio
 
   >
  =pid_param"lass="lisref">pid_parama>=s.atio
 
   >
  =tmio	=/sprs/macisref">mmio	=/heac), atio
 
   >
  =FIX32TOPRINTclass="lisref">FIX32TOPRINT/mac(atio
 
   >
  =pid_param"lass="lisref">pid_parama>=s.atio
 
   >
  =tmaxclass="lisref">tmax/mac),right 2005 Benjamin Herrenschmidt, IBM Corp.=45 id2 L9"45 class="line" nam 2 L9"45>   458a>=s            atio
 
   >
  =pid_param"lass="lisref">pid_parama>=s.atio
 
   >
  =mm class="lisref">mi /mac, atio
 
   >
  =pid_param"lass="lisref">pid_parama>=s.atio
 
   >
  =maxclass="lisref">max/mac);right 2005 Benjamin Herrenschmidt, IBM Corp.=45 the sam45 =/spatio
  =failclass="lisref">faila>=s:none_pm81.c#L9" id2 L9" class="line" nam 2 L946 id2 L4"46 class="line" nam 2 L4"46>   463ntos        atio
 
   >
  =pr>=tkclass="lisref">pr>=tkc#L8(atio
 
   >
  =KERN_WARNINGclass="lisref">KERN_WARNINGa>=s apm81.c#L5" istr>=s"s quo=/hmidt, I: CPUcfan">  figdnot found\n quo=/i are pnone_pm81.c#L9" id2 L9" class="line" nam 2 L946/spatio<46a href="drivers/macinto46sh/w464gori               apm81.c#L5" istr>=s"s quo=/for this machver m
  l, max fan"speed\n quo=/i are p);right 2005 Benjamin Herrenschmidt, IBM Corp.=46spatio>   46/a>=s        9f (atio
 
   >
  =cpufreq_assmpclass="lisref">cpufreq_assmp/mac)right 2005 Benjamin Herrenschmidt, IBM Corp.=46href="dr46ivers/macintosh/windfar46m_pm467a>=s                atio
 
   >
  =wf_>   >9>_s=/_maxclass="lisref">wf_>   >9>_s=/_maxc#L8(atio
 
   >
  =cpufreq_assmpclass="lisref">cpufreq_assmp/mac);right 2005 Benjamin Herrenschmidt, IBM Corp.=46 id2 L9"46 class="line" nam 2 L9"46>   46/a>=s        9f (atio
 
   >
  =fan_cpu_mam class="lisref">fan_cpu_mam /mac)right 2005 Benjamin Herrenschmidt, IBM Corp.=46 the sam46 =/spatiowf_>   >9>_s=/_maxc#L8(atio
 
   >
  =fan_cpu_mam class="lisref">fan_cpu_mam /mac);right 2005 Benjamin Herrenschmidt, IBM Corp.=471"
	 s t47at=/spatio
  =wf_smu_cpu_f ne_tickclass="lisref">wf_smu_cpu_f ne_tickc#L8(struc  atio
 
   >
  =wf_smu_cpu_f ne_nsuteclass="lisref">wf_smu_cpu_f ne_nsutea>=s *atio
 
   >
  =stclass="lisref">sta>=s)right 2005 Benjamin Herrenschmidt, IBM Corp.=47 id2 L4"47 class="line" nam 2 L4"47>   473ntos{right 2005 Benjamin Herrenschmidt, IBM Corp.=47/spatio<47a href="drivers/macinto47sh/w47dfarm        atio
 
   >
  =s3ivers/macisref">s3lgori atio
 
   >
  =new_s=/po9" vers/macisref">new_s=/po9" /mac, atio
 
   >
  =tempclass="lisref">temp/mac, atio
 
   >
  =powerclass="lisref">powera>=s, atio
 
   >
  =sysmio	=/sprs/macisref">sysmio	=/a>=s;right 2005 Benjamin Herrenschmidt, IBM Corp.=47spatio
  =rcclass="lisref">rcheac;right 2005 Benjamin Herrenschmidt, IBM Corp.=47 id2 L7"47 class="line" nam 2 L7"47>   47/a>=sright 2005 Benjamin Herrenschmidt, IBM Corp.=4hhref="dr4iivers/macintosh/windfar4mm_pm477a>=s        9f (--atio
 
   >
  =stclass="lisref">sta>=s- *=/atio
 
   >
  =ticksclass="lisref">ticks/mac != 0) {right 2005 Benjamin Herrenschmidt, IBM Corp.=47 id2 L9"47 class="line" nam 2 L9"47>   478a>=s                9f (atio
 
   >
  =wf_smu_readjustclass="lisref">wf_smu_readjusta>=s)right 2005 Benjamin Herrenschmidt, IBM Corp.=47 the sam47 =/spatioreadjusta>=s;right 2005 Benjamin Herrenschmidt, IBM Corp.=4 1"
	 s t48at=/spatio
  =stclass="lisref">sta>=s- *=/atio
 
   >
  =ticksclass="lisref">ticks/mac = atio
 
   >
  =WF_SMU_CPU_FANS_INTERVALclass="lisref">WF_SMU_CPU_FANS_INTERVALa>=s;right 2005 Benjamin Herrenschmidt, IBM Corp.=48 id2 L4"48 class="line" nam 2 L4"48>   48/a>=sright 2005 Benjamin Herrenschmidt, IBM Corp.=48/spatio<48a href="drivers/macinto48sh/w48dfarm        atio
 
   >
  =rcclass="lisref">rcheac = atio
 
   >
  =wf_sensor_	=/sprs/macisref">wf_sensor_	=/c#L8(atio
 
   >
  =sensor_cpu_tempclass="lisref">sensor_cpu_tempheac, &atio
 
   >
  =tempclass="lisref">temp/mac);right 2005 Benjamin Herrenschmidt, IBM Corp.=4 spatiorcheac) {right 2005 Benjamin Herrenschmidt, IBM Corp.=48 id2 L7"48 class="line" nam 2 L7"48>   48/a>=s                atio
 
   >
  =pr>=tkclass="lisref">pr>=tkc#L8(atio
 
   >
  =KERN_WARNINGclass="lisref">KERN_WARNINGa>=s apm81.c#L5" istr>=s"s quo=/hmidt, I: CPUctemp sensor error %d\n quo=/i are p,right 2005 Benjamin Herrenschmidt, IBM Corp.=4 href="dr48ivers/macintosh/windfar48m_pm487a>=s                       atio
 
   >
  =rcclass="lisref">rcheac);right 2005 Benjamin Herrenschmidt, IBM Corp.=4  id2 L9"4  class="line" nam 2 L9"4>>   488a>=s                atio
 
   >
  =wf_smu_failure_nsuteclass="lisref">wf_smu_failure_nsutegori |= atio
 
   >
  =FAILURE_SENSORclass="lisref">FAILURE_SENSORntos;right 2005 Benjamin Herrenschmidt, IBM Corp.=4  the sam48 =/spatio
  =rcclass="lisref">rcheac = atio
 
   >
  =wf_sensor_	=/sprs/macisref">wf_sensor_	=/c#L8(atio
 
   >
  =sensor_cpu_powerclass="lisref">sensor_cpu_powerheac, &atio
 
   >
  =powerclass="lisref">powera>=s);right 2005 Benjamin Herrenschmidt, IBM Corp.=4  id2 L4"49 class="line" nam 2 L4"49>   493gori        9f (atio
 
   >
  =rcclass="lisref">rcheac) {right 2005 Benjamin Herrenschmidt, IBM Corp.=4 /spatio<49a href="drivers/macinto49sh/w494gori                atio
 
   >
  =pr>=tkclass="lisref">pr>=tkc#L8(atio
 
   >
  =KERN_WARNINGclass="lisref">KERN_WARNINGa>=s apm81.c#L5" istr>=s"s quo=/hmidt, I: CPUcpower sensor error %d\n quo=/i are p,right 2005 Benjamin Herrenschmidt, IBM Corp.=49spatiorcheac);right 2005 Benjamin Herrenschmidt, IBM Corp.=49 id2 L7"49 class="line" nam 2 L7"49>   49/a>=s                atio
 
   >
  =wf_smu_failure_nsuteclass="lisref">wf_smu_failure_nsutegori |= atio
 
   >
  =FAILURE_SENSORclass="lisref">FAILURE_SENSORntos;right 2005 Benjamin Herrenschmidt, IBM Corp.=49href="dr49ivers/macintosh/windfar49m_pm497a>=s                return;right 2005 Benjamin Herrenschmidt, IBM Corp.=4  id2 L9"49 class="line" nam 2 L9"49>   498a>=s        }right 2005 Benjamin Herrenschmidt, IBM Corp.=4  the sam4  =/spatioDBGc#L8(apm81.c#L5" istr>=s"s quo=/hf_smu: CPUcFans tick ! CPUctemp: %d.%03d,cpower: %d.%03d\n quo=/i are p,right 2005 Benjamin Herrenschmidt, IBM Corp.=501"
	 s t5ahowever=/spatio=s            atio
 
   >
  =FIX32TOPRINTclass="lisref">FIX32TOPRINT/mac(atio
 
   >
  =tempclass="lisref">temp/mac), atio
 
   >
  =FIX32TOPRINTclass="lisref">FIX32TOPRINT/mac(atio
 
   >
  =powerclass="lisref">powera>=s)io
 
   >
  =powerclass="lisref">powera>=s)io
 f">wf_smu_fai2istr>=s"s quo=/poweisre4wera>=s)io
 
   >
  =powe7E 1atio
 
   >
  =pid3 am81.c#L6" id2 L6" cla/* 3d,cp4 
   >
  =pid3 am81.c#L6_	=/_ifdef
 
   >
  =FIX32HACKEDTEMPclass="lisref">FAILUHACKEDTEMPclass 
   >
  =powe7E 1atio
 
   >
  =pid3 am81.c#L6" id4 L6" cla/f="drivers/macinto49sh/540dfa5m             tio
 
   >
  =tempclass="lisref">temp/mac  *=/ (atio0x4a)righ >
  =powe7E 1atio
 
   >
  =pid3 am81.c#L6" id5 L6" cla/="drivers/macintos49h/w5405a>5s                      
   >
  =wf_smu_failure_nsuteclass="lisref">wf_smu_failure_nsutegori |= atio
 
   >
  =FAILURE_SENSOEMPclass="lisref">FAILURE_OVERTEMPntos;right 2005 Benjamin Herrenschmidt, IBM Corp.=35 id5 L7"40 cl5ss="line" nam 2 L7"406s/540/a>5s     #ight 2005 Benjamin Herrenschmidt, IBM Corp.=4 8re5 L7"40ive5s/macintosh/windfar407s/5407a>50        9f (--ati 
   >
  =tempclass="lisref">temp/mac  *=/ (atio 
   >
  =stclass="lisref">sta>=s- *=/atio
 
   >
  =ticksass="lisref">pidheac, &am
 
   >
  =param"lass="lisref">parama>=s.atio
 
   >
  =maxcllass="lisref">tmax/mac),righ 2005 Benjamin Herrenschmidt, IBM Corp.=4 8re5 87"40ive5ss="line" nam 2 L9"49>  540/a>50                atio
 
   >
  =wf_smu_failure_nsuteclass="lisref">wf_smu_failure_nsutegori |= atio
 
   >
  =FAILURE_SENSOEMPclass="lisref">FAILURE_OVERTEMPntos;right 2005 Benjamin Herrenschmidt, IBM Corp.=35 id5 97"40ive5satio
  =DBGcl=/po9" vers/macisref">new_s=/po9" /mac == ati
 
   >
  =wf_>pu_pid_initcrus="lisref">wf_>   >9d_initcrusatio
atio
 
   >
  =powerss="lisref">sta>=s- *=/atio
 
   >
  =ticksass="lisref">pidheac, &amo
 
   >
  =powerclass="lisref">powera>=s, atio
 
   >
  =sysmilass="lisref">temp/mac);right 2005 Benjamin Herrenschmidt, IBM Corp.=4 spa5 s t4hhow5ver=/spatio=sp5t class="comment"> 4* Th541lgo51        atio
 
   >
  =rcclaass="lisref">DBGc#L8(apm81.c#L5" istr>=s"s quo=/hf_smu: CPUcF=/po9" /mac 7;d RPM\n quo=/i are p, (9" )atio
 
   >
  =scale=/po9" vers/macisref">new_s=/po9" /mac == aht 2005 Benjamin Herrenschmidt, IBM Corp.=4 spa5 2 L6" class="line" nam 2 L4"41>  5413nt51right 2005 Benjamin Herrenschmidt, IBM Corp.=48/sp5 s t41a h5ef="drivers/macinto41sh/5414go51        atio
 
   >
  =s3iver	=/sprs/macisref">sysmio	=/a>=s;righio
 
   >
  =wf_smu_cpu_f=/polass="lisref">wf_smu_cpu_f=/polassrighio
 
   >
  =wf_smu_cpu_f=/polass="lisref">wf_smu_cpu_f=/polassrighatio
 
   >
  =pid"lass="lisref">pidheac.atio
 
   >
  =mio	=/sprs/macisref">mio	=/heac : 0;right 2005 Benjamin Herrenschmidt, IBM Corp.=36 id5 s t41 hr5f="drivers/macintos41h/w5415a>51        atio
 
   >
  =scaled	=/sprs/macisref">sysmio	=/a>=s;righio
tio
 
   >
  =s6a href="drsref">s6dfarm)atio
 
   >
  =cpumid	=/sprs/macisref">sysmio	=/a>=s;righatio
 
   >
  =s6a href="drsref">s6dfarm)atio
 
   >
  =stclass="lisref">sta>=s- *=/atio
 
   >
  =ncale1clas="lisref">sta>=seac = at/ *=/ 12) + at 2005 Benjamin Herrenschmidt, IBM Corp.=36 id5 L7"40 cl5ss="line" nam 2 L7"41>  541/a>5s                atio
o
 
   >
  =stclass="lisref">sta>=s- *=/atio
 
   >
  =offs=/1clas="lisref">sta>=/heac = att 2005 Benjamin Herrenschmidt, IBM Corp.=36 id5 L7"40ive5s/macintosh/windfar41m_p5417a>51        atio
 
   >
  =pid_p=/po9" vers/macisref">new_s=/po9" /mac == ati
 
   >
  =wf_>pass="lisref">max/mac(atio
 
   >
  =scale=/po9" vers/macisref">new_s=/po9" /mac, atio
 
   >
  =tempcd	=/sprs/macisref">sysmio	=/a>=s;righat 2005 Benjamin Herrenschmidt, IBM Corp.=36 id5 87"40ive5ss="line" nam 2 L9"41>  5418a>51        atio
 
   >
  =pid_p=/po9" vers/macisref">new_s=/po9" /mac == ati
 
   >
  =wf_>pass="lisref">max/mac(atio
 
   >
  =scale=/po9" vers/macisref">new_s=/po9" /mac, atio
 
   >
  =tempcds="lisref">sta>=s- *=/atio
 
   >
  =ticksass="lisref">pidheac, &am
 
   >
  =param"lass="lisref">parama>=s.atio
 
   >
  =maxclass="lisref">mi /mac);right 2005 Benjamin Herrenschmidt, IBM Corp.=36 id5="dr41 =/5pationew_s=/po9" /mac == ati
 
   >
  =wf_>pass="lisref">mi /mac(atio
 
   >
  =scale=/po9" vers/macisref">new_s=/po9" /mac, atio
 
   >
  =tempcds="lisref">sta>=s- *=/atio
 
   >
  =ticksass="lisref">pidheac, &am
 
   >
  =param"lass="lisref">parama>=s.atio
 
   >
  =maxclass="lisref">max/mac);right 2005 Benjamin Herrenschmidt, IBM Corp.=45 th5 s t42at=5spatio
  =wf_smass="lisref">DBGc#L8(apm81.c#L5" istr>=s"s quo=/hf_smu: adjusted s=/po9" : %d RPM\n quo=/i are p, (9" )atio
 
   >
  =scale=/po9" vers/macisref">new_s=/po9" /mac == aht 2005 Benjamin Herrenschmidt, IBM Corp.=4 spa59=/a4==sp5t class="comment"> 4  Th542lgo52
 
   >
  =powe7E 1atio
 
   >
  =pid3 am81.c#L6" i L4"42 cl5ss="line" nam 2 L4"42>  5423go5i        9f (atio
 
   >
  =wf_smds="lisref">sta>=s- *=/atio
 
   >
  =ticks9d_i9" vers/macisref">new_s9d_i9" vers/== atio
 
   >
  =new_s=/po9" vers/macisref">new_s=/po9" /mac;right 2005 Benjamin Herrenschmidt, IBM Corp.=36 id5 s t42a h5ef="drivers/macinto42sh/542dfa5m                goto n;right 2005 Benjamin Herrenschmidt, IBM Corp.=4  id5 s t42 hr5f="drivers/macintos42h/w542far5_        atio
 
   >
  =wf_smds="lisref">sta>=s- *=/atio
 
   >
  =ticks9d_i9" vers/macisref">new_s9d_i9" vers/== ati
 
   >
  =new_s=/po9" vers/macisref">new_s=/po9" /mac;right 2005 Benjamin Herrenschmidt, IBM Corp.=4  id5 L7"40 cl5ss="line" nam 2 L7"42>  542/a>5sright
 
   >
  =readjustclass="lisref">readjusta>=s;righ_pm81.c#L9" id2 L9" class="line" nam 2 L946 id5="dr42ive5s/macintosh/windfar42m_p5427ar52        9f (--ati 
   >
  =tempcpu_mam class="lisref">fan_cpu_mam /mac);rig;& atio
 
   >
  =wf_smu_failure_nsuteclass="lisref">wf_smu_failure_nsutegori == 0) {right 2005 Benjamin Herrenschmidt, IBM Corp.=38/sp5="dr42 cl5ss="line" nam 2 L9"42>  542/a>52                atio
 
   >
  =wf_smss="lisref">rcheac = atio
 
   >
  =wf_>   >9>_s=/class="lisref">wf_>   >9>_s=//mac(atio
 
   >
  =fan_hdclaam class="lisref">fan_cpu_mam /mac);rigo
 
   >
  =tempcds="lisref">sta>=s- *=/atio
 
   >
  =ticks9d_i9" vers/macisref">new_s9d_i9" vers/== aht 2005 Benjamin Herrenschmidt, IBM Corp.=4 spa59"dr41 =/5patiorcheac) {right 2005 Benjamin Herrenschmidt, IBM Corp.=4 /sp5 s t43at=5spatiopr>=tkc#L8(atio
 
   >
  =KERN_WARNINGclass="lisref">KERN_WARNINGa>=s apm81.c#L5" istr>=s"s quo=/hmidt, I: CPUcpowermac)spee/i are pnone_pm81.c#L9" id2 L9" class="line" nam 2 L946/sp5note43how5ver=/spatio=s"s quo=/    tm %d\n quo=/i are p,right
 
   >
  =rcclass="lisref">rcheac);right 2005 Benjamin Herrenschmidt, IBM Corp.=49 id59=/a43ive5s/macintosh/windfar43 Th5432nt53                              
   >
  =wf_smu_failure_nsuteclass="lisref">wf_smu_failure_nsutegori |= atio
 
   >
  =FAILURE_SENSOass="lisref">FAILURE_FAN/mac;right 2005 Benjamin Herrenschmidt, IBM Corp.=3  th5 L4"4  cl5ss="line" nam 2 L4"4>>  5433go5i        9f (aaaaaaaaat 2005 Benjamin Herrenschmidt, IBM Corp.=4  th5tio<43a h5ef="drivers/macinto43sh/5434go5i             t 2005 Benjamin Herrenschmidt, IBM Corp.=4  th5ts t42 hr5f="drivers/macintos43h/w5435a>5s     t 2005 Benjamin Herrenschmidt, IBM Corp.=4  th5tL7"40 cl5ss="line" nam 2 L7"43>  543/a>53right 2005 Benjamin Herrenschmidt, IBM Corp.=4hhre5="dr43ive5s/macintosh/windfar43m_p5437a>5s     c#L6" id2 L6" cla/* Fill pnone_pm81.c#L9" id2 L9" class="line" nam 2 L946/sp5n"dr42 cl5ss="line" nam 2 L9"43>  543/a>5s     sed is 36Das 312
 #####* ****** S;rip / Init / Misc ... ****** pnone_pm81.c#L9" id2 L9" class="line" nam 2 L946/sp5n"dr41 =/5patio
  =wf_smu_cpu_flass="lisref">wf_smu_cpu_f#L8(strucresent in the Darwin 8.2 snapshot property li3 /sp5 L4"44 cl5ss="line" nam 2 L4"44>  5443nt54{right 2005 Benjamin Herrenschmidt, IBM Corp.=47/sp5tio<4aa h5ef="drivers/macinto4ssh/5444go5i        atio
unsign/potio
 
   >
  =rcclarivture_nsut="lisref">wf_smrivture_nsutrighio
 
   >
  =wf_smu_cpu_fre_nsuteclass="lisref">wf_smu_failure_nsutegori |= at 2005 Benjamin Herrenschmidt, IBM Corp.=3  th5iowf_sm=/pore_nsut|= at 2005 Benjamin Herrenschmidt, IBM Corp.=3  th5iL7"40 cl5ss="line" nam 2 L7"44>  544/a>54right 2005 Benjamin Herrenschmidt, IBM Corp.=4hhre5="dr44ive5s/macintosh/windfar44m_p5447ar54        9f (--ati! 
   >
  =wf_smu_cpu_f=taonei="lisref">wf_smu_cpu_f=taonei {right 2005 Benjamin Herrenschmidt, IBM Corp.=4 /sp5 L9"44 cl5ss="line" nam 2 L9"44>  544/a>54                atio
 
   >
  =wf_smass="lisref">DBGc#L8(apm81.c#L5" istr>=s"s quo=/hf: CPUcFc_cpuo9" 9>aloop (s !o=/i are p);right 2005 Benjamin Herrenschmidt, IBM Corp.=46spa5 sam44 =/5patiowf_smu_cpu_fe_cpu_f=/polassapm81ht 2005 Benjamin Herrenschmidt, IBM Corp.=46spa5 s t45at=5spatiowf_smu_creute_cpu_f nec#L8(void)ht 2005 Benjamin Herrenschmidt, IBM Corp.=46spa5 ote44how5ver=/spatio
  =wf_smu_cpu_f=taonei="lisref">wf_smu_cpu_f=taonei {riright 2005 Benjamin Herrenschmidt, IBM Corp.=42 id5="dr45ive5s/macintosh/windfar45 Th545lgo552            t 2005 Benjamin Herrenschmidt, IBM Corp.=4  th5 L4"45 cl5ss="line" nam 2 L4"45>  5453nt55right 2005 Benjamin Herrenschmidt, IBM Corp.=48/sp5tio<45a h5ef="drivers/macinto45sh/545dfa55        atio
 #L6" id2 L6" cla/* Fill Skippo9" /mac #*opyright 2005 Benjamin Herrenschmidt, IBM Corp.=4 ts 5iowf_smu_cpu_f=kippo9";rig;& atio
o
 
   >
  =stclau_cpu_f=kippo9"="lisref">wf_smu_cpu_f=kippo9";rignt in the Darwin 8.2 snapshot property li3 /sp5 L7"45 cl5ss="line" nam 2 L7"45>  545/a>55                atio
n;right 2005 Benjamin Herrenschmidt, IBM Corp.=4  id5="dr45ive5s/macintosh/windfar45m_p5457a>5s      2005 Benjamin Herrenschmidt, IBM Corp.=4  id5=L9"44 cl5ss="line" nam 2 L9"45>  5458a>55        atio
 
   >
  =wf_smu_cpu_fre_nsuteclass="lisref">wf_smu_failure_nsutegori == 0) ght 2005 Benjamin Herrenschmidt, IBM Corp.=36 id5 sam45 =/5patiowf_smu_cpu_f=/polassrighnt in the Darwin 8.2 snapshot property li3 /sp5 s t46at=5spatiowf_smu_cpu_f=/polassflassatio
 
   >
  =KERN_u_cpu_f=/polass="lisref">wf_smu_cpu_f=/polassrighnt 2005 Benjamin Herrenschmidt, IBM Corp.=36 id5note46how5ver=/spatio
  =rcclau_cpu_f neclass="lisref">wf_smu_cpu_f neheac- *=/nt in the Darwin 8.2 snapshot property li3 /sp5 "dr45ive5s/macintosh/windfar46 Th546lgo56                      
   >
  =rcclau_cpu_f neclassclass="lisref">wf_smu_cpu_f ne_tickc#L8(struc 
   >
  =rcclau_cpu_f neclass="lisref">wf_smu_cpu_f neheac- *=/nt 2005 Benjamin Herrenschmidt, IBM Corp.=36 id5nL4"45 cl5ss="line" nam 2 L4"46>  5463nt56right 2005 Benjamin Herrenschmidt, IBM Corp.=48/sp5tio<46a h5ef="drivers/macinto46sh/5464go5i              
   >
  =rcclau_cpu_fustclass="lisref">wf_smu_readjusta>=s)righ) ght 2005 Benjamin Herrenschmidt, IBM Corp.=36 id5iowf_sm=/pore_nsut|= aio
 
   >
  =wf_smu_cpu_fre_nsuteclass="lisref">wf_smu_failure_nsutegori |= a; initi~ 
   >
  =rcclarivture_nsut="lisref">wf_smrivture_nsutright 2005 Benjamin Herrenschmidt, IBM Corp.=36 id5iL7"45 cl5ss="line" nam 2 L7"4>>  546/a>56right 2005 Benjamin Herrenschmidt, IBM Corp.=4hhre5="dr46ive5s/macintosh/windfar46m_p5467a>5s              #L6" id2 L6" cla/* Fill If eco/mo9" re_nsutl, ma, id2mp eq_assm and r2mp allpyright 2005 Benjamin Herrenschmidt, IBM Corp.=4 ts 5 L9"46 cl5ss="line" nam 2 L9"46>  546/a>56     sed is 36Das 312
 #############*speeset 1fulld\n qu.pyright 2005 Benjamin Herrenschmidt, IBM Corp.=4 ts 5 sam45 =/5patio
  =rcclau_cpu_fre_nsuteclass="lisref">wf_smu_failure_nsutegori |= a; init initi! 
   >
  =wf_smrivture_nsut="lisref">wf_smrivture_nsutrighght 2005 Benjamin Herrenschmidt, IBM Corp.=4 /sp5note47how5ver=/spatio
  =cpufreq_assmpclass="lisref">cpufreq_assmp/mac)right 2005 Benjamin Herrenschmidt, IBM Corp.=46hre5="dr47ive5s/macintosh/windfar47 Th5472nt57                              
   >
  =wf_smu_f9>_s=/_maxclass="lisref">wf_>   >9>_s=/_maxc#L8(atio
 
   >
  =cpufreq_assmpclass="lisref">cpufreq_assmp/mac);right 2005 Benjamin Herrenschmidt, IBM Corp.=46 id5 L4"47 cl5ss="line" nam 2 L4"47>  5473nt57        9f (aaaaaaaaa-ati 
   >
  =tempcpu_mo	=/es="lisref">parampu_mo	=/esright 2005 Benjamin Herrenschmidt, IBM Corp.=46hre5=io<46a h5ef="drivers/macinto47sh/547dfa57                goto          
   >
  =wf_smu_f9>_s=/_maxclass="lisref">wf_>   >9>_s=/_maxc#L8(atio
 
   >
  =cpufrpu_mo	=/es="lisref">parampu_mo	=/esrightt 2005 Benjamin Herrenschmidt, IBM Corp.=46 id5 ofan_cpu_mam /mac)right 2005 Benjamin Herrenschmidt, IBM Corp.=46 th5 L7"47 cl5ss="line" nam 2 L7"47>  547/a>57                atio
         
   >
  =wf_smu_f9>_s=/_maxclass="lisref">wf_>   >9>_s=/_maxc#L8(atio
 
   >
  =cpufrpu_mam class="lisref">fan_cpu_mam /mac);right 2005 Benjamin Herrenschmidt, IBM Corp.=471"
5="dr4iive5s/macintosh/windfar4mm_p5477a>57                returtio
 
   >
  =fan_cpu_mhi="lisref">wf_smpu_mhiright 2005 Benjamin Herrenschmidt, IBM Corp.=46 th5 L9"46 cl5ss="line" nam 2 L9"47>  5478a>5s                9f (a         
   >
  =wf_smu_f9>_s=/_maxclass="lisref">wf_>   >9>_s=/_maxc#L8(atio
 
   >
  =cpufrpu_mhi="lisref">wf_smpu_mhirightt 2005 Benjamin Herrenschmidt, IBM Corp.=471"
5=sam45 =/5patio58right 2005 Benjamin Herrenschmidt, IBM Corp.=401"
5note48how5ver=/spatio5s        }righ #L6" id2 L6" cla/* Fill If leavo9" re_nsutl, ma, unid2mp eq_assm and rsta>=s)riright 2005 Benjamin Herrenschmidt, IBM Corp.=4 ts 5="dr48ive5s/macintosh/windfar48 Th5482nt5s     sed is 36Das 312
 #############*sallspeeseon next io/mationriright 2005 Benjamin Herrenschmidt, IBM Corp.=4 ts 5=L4"47 cl5ss="line" nam 2 L4"48>  548/a>5srightsed is 36Das 312
 #############*opyright 2005 Benjamin Herrenschmidt, IBM Corp.=4 ts 5tio<48a h5ef="drivers/macinto48sh/548dfa5m        atio
-ati! 
   >
  =wf_smu_cpu_fre_nsuteclass="lisref">wf_smu_failure_nsutegori |= a; init initi 
   >
  =wf_smrivture_nsut="lisref">wf_smrivture_nsutrighght 2005 Benjamin Herrenschmidt, IBM Corp.=4 /sp5iocpufreq_assmp/mac)right 2005 Benjamin Herrenschmidt, IBM Corp.=46hre5 L7"48 cl5ss="line" nam 2 L7"48>  548/a>5s                atio
         
   >
  =wf_smu_f9>_s=/_maxclass="lisref">wf_>   >9>_	=/_ms c#L8(atio
 
   >
  =fan_ceq_assmpclass="lisref">cpufreq_assmp/mac);right 2005 Benjamin Herrenschmidt, IBM Corp.=46 id5="dr48ive5s/macintosh/windfar48m_p5487a>5s                      
   >
  =rcclau_cpu_fustclass="lisref">wf_smu_readjusta>=s)righ) ght 2005 Benjamin Herrenschmidt, IBM Corp.=42 id5 L9"4  cl5ss="line" nam 2 L9"4>>  5488a>58        }right 2005 Benjamin Herrenschmidt, IBM Corp.=4  th5 sam48 =/5patio_dition detected,founify and =taon =kippo9" ao9>upc = right 2005 Benjamin Herrenschmidt, IBM Corp.=4 ts 5note49how5ver=/spatio  5493go5i        9f (atio
 
   >
  =rccla=/pore_nsut="lisref">wf_sm=/pore_nsut|= ai initi 
   >
  =wf_smRE_SENSOEMPclass="lisref">FAILURE_OVERTEMPntos;righght 2005 Benjamin Herrenschmidt, IBM Corp.=4 /sp5tio<49a h5ef="drivers/macinto49sh/5494go5i                atio
 
   >
  =pr>=tnsor_t_o2 Lsens="lisref">wf_smu_re_t_o2 Lsensvoid)ht 2005 Benjamin Herrenschmidt, IBM Corp.=46spa5iowf_smu_cpu_f=kippo9";rig;= 2t 2005 Benjamin Herrenschmidt, IBM Corp.=46spa5iL7"48 cl5ss="line" nam 2 L7"49>  549/a>5s             t 2005 Benjamin Herrenschmidt, IBM Corp.=4  th5="dr49ive5s/macintosh/windfar49m_p5497a>59      2005 Benjamin Herrenschmidt, IBM Corp.=4  id5 L9"49 cl5ss="line" nam 2 L9"49>  5498a>5s        }righ #L6" id2 L6" cla/* Fill Weeonly idear the:o2 Lsenso9>_dition tioo2 Lsensois idearei {right 2005 Benjamin Herrenschmidt, IBM Corp.=4 ts 5 sam48 =/5patio_dition (can't meassutl /matsut) a)riright 2005 Benjamin Herrenschmidt, IBM Corp.=4 ts 6 s t5ahow6ver=/spatio60rightsed is 36Das 312
 #############*s/he:9>aloop (%levels, but we don't want#to keesoit idearriright 2005 Benjamin Herrenschmidt, IBM Corp.=4 ts 6 2 t5ahow6v/macintosh/windfar49 Th6a>=s)60     sed is 36Das 312
 #############*shertlin machvcas = right 2005 Benjamin Herrenschmidt, IBM Corp.=4 ts 6d2 L6" cl6/* 3d,cp4 
   >
  =pid3 6m81.c60rightsed is 36Das 312
 #############*opyright 2005 Benjamin Herrenschmidt, IBM Corp.=4 ts 6d4 L6" cl6/f="drivers/macinto49sh/640dfa6m             tio
 
   >
  =tempc=/pore_nsut="lisref">wf_sm=/pore_nsut|= aio= 0; init initi 
   >
  =wf_smrivture_nsut="lisref">wf_smrivture_nsutrighi initi 
   >
  =wf_smRE_SENSOEMPclass="lisref">FAILURE_OVERTEMPntos;righg 2005 Benjamin Herrenschmidt, IBM Corp.=4 ts 6d5 L6" cl6/="drivers/macintos49h/w6405a>6s                      
   >
  =wf_smu_fidear_o2 Lsens="lisref">wf_smu_ridear_o2 Lsensvoid)ht 2005 Benjamin Herrenschmidt, IBM Corp.=46spa6 L7"40 cl6ss="line" nam 2 L7"406s/640/a>6s     t 2005 Benjamin Herrenschmidt, IBM Corp.=4  th6 L7"40ive6s/macintosh/windfar407s/6407a>60      2005 Benjamin Herrenschmidt, IBM Corp.=4  id6 87"40ive6ss="line" nam 2 L9"49>  640/a>60     i void atio
 
   >
  =wf_smu_cpu_f=/po9>aloop="lisref">wf_smu_cpu_f=/po9>aloopvoid)  atio
 
   >
  =wf_smu_c9>aloop="lisref">wf_smu_c9>aloopvoido
 
   >
  =stclac/macisref">new_s9;right 2005 Benjamin Herrenschmidt, IBM Corp.=36 id6 97"40ive6satio
  =rcclau_cpu_fallc9>aloops_os="lisref">wf_smu_cpu_fallc9>aloops_osright 2005 Benjamin Herrenschmidt, IBM Corp.=36 id6 s t4hhow6ver=/spatio=sp6t class="comment"> 4* Th641lgo61
 
   >
  =powe7E 1atio
 
   >
  =pid3 am81.c#L6" 6 2 L6" cl6ss="line" nam 2 L4"41>  6413nt61        9f (atio
 
   >
  =rcclapu_mam class="lisref">fan_cpu_mam /mac);rig;io
 
   >
  =new_sNULs="lisref">WF_SMNULs|= a; init initi! 
   >
  =wf_sm  acss="lisref">sensor acssatio
 
   >
  =fan_ce/macisref">new_s9;righatio
 
   >
  =ticks4"41="lisref">wf_sm="41righ,
 c#L5" istr>=s"s quo=/    tam -pee/i are pnone_)ght 2005 Benjamin Herrenschmidt, IBM Corp.=4 /sp6 s t41a h6ef="drivers/macinto41sh/6414go61                atio
tio
 
   >
  =rcclau_caxc#9>aloop="lisref">wf_smu_caxc#9>aloopatio
 
   >
  =fan_ce/macisref">new_s9;righ)) {rig 2005 Benjamin Herrenschmidt, IBM Corp.=4 /sp6 5 L6" cl6f="drivers/macintos41h/w6415a>61                              
   >
  =wf_smpu_mam class="lisref">fan_cpu_mam /mac);rig;i  
   >
  =wf_sme/macisref">new_s9;right 2005 Benjamin Herrenschmidt, IBM Corp.=4  id6 L7"40 cl6ss="line" nam 2 L7"41>  641/a>61             t 2005 Benjamin Herrenschmidt, IBM Corp.=4  th6 L7"40ive6s/macintosh/windfar41m_p6417a>61      2005 Benjamin Herrenschmidt, IBM Corp.=4  id6 87"40ive6ss="line" nam 2 L9"41>  6418a>61        9f (atio
 
   >
  =fan_cpu_mo	=/es="lisref">parampu_mo	=/esrigh;io
 
   >
  =new_sNULs="lisref">WF_SMNULs|= a; init initi! 
   >
  =wf_sm  acss="lisref">sensor acssatio
 
   >
  =fan_ce/macisref">new_s9;righatio
 
   >
  =ticks4"41="lisref">wf_sm="41righ,
 c#L5" istr>=s"s quo=/    to	=/es-pee/i are pnone_)ght 2005 Benjamin Herrenschmidt, IBM Corp.=4 /sp6 97"40ive6patiowf_smu_caxc#9>aloopatio
 
   >
  =fan_ce/macisref">new_s9;righ)) {rig 2005 Benjamin Herrenschmidt, IBM Corp.=4 /sp6 s t42at=6spatioparampu_mo	=/esrigh;i  
   >
  =wf_sme/macisref">new_s9;right 2005 Benjamin Herrenschmidt, IBM Corp.=4  id6 s t42how6ver=/spatio 4  Th642lgo62
 
   >
  =powe7E 1atio
 
   >
  =pid3 am81.c#L6" 6 L4"42 cl6ss="line" nam 2 L4"42>  6423go6i        9f (atio
 
   >
  =wf_smeq_assmpclass="lisref">cpufreq_assmp/mac);rig;io
 
   >
  =new_sNULs="lisref">WF_SMNULs|= a; init initi! 
   >
  =wf_sm  acss="lisref">sensor acssatio
 
   >
  =fan_ce/macisref">new_s9;righatio
 
   >
  =ticks4"41="lisref">wf_sm="41righ,
 c#L5" istr>=s"s quo=/    teq_assm-/mac)/i are pnone_)ght 2005 Benjamin Herrenschmidt, IBM Corp.=4 /sp6 s t42a h6ef="drivers/macinto42sh/642dfa6m                goto tio
 
   >
  =rcclau_caxc#9>aloop="lisref">wf_smu_caxc#9>aloopatio
 
   >
  =fan_ce/macisref">new_s9;righ)) {rig 2005 Benjamin Herrenschmidt, IBM Corp.=4 /sp6 5 L6" cl6f="drivers/macintos42h/w642far62                              
   >
  =wf_smeq_assmpclass="lisref">cpufreq_assmp/mac);rig;i  
   >
  =wf_sme/macisref">new_s9;right 2005 Benjamin Herrenschmidt, IBM Corp.=4  id6 L7"40 cl6ss="line" nam 2 L7"42>  642/a>62             t 2005 Benjamin Herrenschmidt, IBM Corp.=4  th6="dr42ive6s/macintosh/windfar42m_p6427ar62      2005 Benjamin Herrenschmidt, IBM Corp.=4  id6="dr42 cl6ss="line" nam 2 L9"42>  642/a>62        }righ #L6" id2 L6" cla/* Fill Dar, I property list sayss/he:HDspeediseonly his , max IDpyright 2005 Benjamin Herrenschmidt, IBM Corp.=4 ts 69"dr41 =/6patio
  =rcclau_cpu_frenh_, max="lisref">wf_smu_cpu_frenh_, max|= a; 2) +3ght 2005 Benjamin Herrenschmidt, IBM Corp.=4 /sp6 L4"4  cl6ss="line" nam 2 L4"4>>  6433go6i        9f (aaaaaaaaatio
 
   >
  =fan_cpu_mo	=/es="lisref">parampu_mo	=/esrigh; init initi 
   >
  =wf_smpu_mam class="lisref">fan_cpu_mam /mac);rig;& atio
 
   >
  =wf_smeq_assmpclass="lisref">cpufreq_assmp/mac)right 2005 Benjamin Herrenschmidt, IBM Corp.=46hre6tio<43a h6ef="drivers/macinto43sh/6434go63                goto          
   >
  =wf_smu_fpu_fallc9>aloops_os="lisref">wf_smu_cpu_fallc9>aloops_osrigh) ght 2005 Benjamin Herrenschmidt, IBM Corp.=42 id6ts t42 hr6f="drivers/macintos43h/w6435a>63                     n;right 2005 Benjamin Herrenschmidt, IBM Corp.=4  id6tL7"40 cl6ss="line" nam 2 L7"43>  643/a>63             t 2005 Benjamin Herrenschmidt, IBM Corp.=4  th6="dr43ive6s/macintosh/windfar43m_p6437a>63      2005 Benjamin Herrenschmidt, IBM Corp.=4  id6n"dr42 cl6ss="line" nam 2 L9"43>  643/a>63        9f (atio
 
   >
  =fan_cpu_mhi="lisref">wf_smpu_mhirigh;io
 
   >
  =new_sNULs="lisref">WF_SMNULs|= a; init initi! 
   >
  =wf_sm  acss="lisref">sensor acssatio
 
   >
  =fan_ce/macisref">new_s9;righatio
 
   >
  =ticks4"41="lisref">wf_sm="41righ,
 c#L5" istr>=s"s quo=/    tamin -bay-pee/i are pnone_)ght 2005 Benjamin Herrenschmidt, IBM Corp.=4 /sp6n"dr41 =/6patiowf_smu_caxc#9>aloopatio
 
   >
  =fan_ce/macisref">new_s9;righ)) {rig 2005 Benjamin Herrenschmidt, IBM Corp.=4 /sp6 s t44at=6spatiowf_smpu_mhirigh;i  
   >
  =wf_sme/macisref">new_s9;right 2005 Benjamin Herrenschmidt, IBM Corp.=4  id6note44how6ver=/spatio  6443nt64        9f (atio
 
   >
  =rcclapu_mo	=/es="lisref">parampu_mo	=/esrigh; init initi 
   >
  =wf_smpu_mhi="lisref">wf_smpu_mhirigh; init initi 
   >
  =wf_smpu_mam class="lisref">fan_cpu_mam /mac);rig;& atio
 
   >
  =wf_smeq_assmpclass="lisref">cpufreq_assmp/mac)right 2005 Benjamin Herrenschmidt, IBM Corp.=46hre6tio<4aa h6ef="drivers/macinto4ssh/6444go64                atio
 
   >
  =pr>=tnsoru_fallc9>aloops_os="lisref">wf_smu_cpu_fallc9>aloops_osrigh) ght 2005 Benjamin Herrenschmidt, IBM Corp.=42 id6io  644/a>64right 2005 Benjamin Herrenschmidt, IBM Corp.=4hhre6="dr44ive6s/macintosh/windfar44m_p6447ar64     i void atio
 
   >
  =wf_smu_cpu_f=/por erro="lisref">wf_smu_cpu_f=/por errovoid)  atio
 
   >
  =wf_smu_cr erro="lisref">wf_smu_cp errovoido
 
   >
  =stclass="lisref">sensorrright 2005 Benjamin Herrenschmidt, IBM Corp.=46hre6t"dr42 cl6ss="line" nam 2 L9"44>  644/a>64     t 2005 Benjamin Herrenschmidt, IBM Corp.=4 /sp6 sam44 =/6patiowf_smu_cpu_fallcp erros_osright 2005 Benjamin Herrenschmidt, IBM Corp.=46hre6 s t45at=6spatio
  =rcclar_cpu_powerclass="lisref">sensor_cpu_powerheac, &am;io
 
   >
  =new_sNULs="lisref">WF_SMNULs|= a; init initi! 
   >
  =wf_sm  acss="lisref">sensor acssatio
 
   >
  =fan_css="lisref">sensorrrighatio
 
   >
  =ticks4"41="lisref">wf_sm="41righ,
 c#L5" istr>=s"s quo=/    tam -heac,/i are pnone_)ght 2005 Benjamin Herrenschmidt, IBM Corp.=4 /sp6 L4"45 cl6ss="line" nam 2 L4"45>  6453nt65        9f (aaaaaaaaatio
 
   >
  =fan_cu_caxc#r erro="lisref">wf_smu_caxc#r erroatio
 
   >
  =fan_css="lisref">sensorrrigh)) {rig 2005 Benjamin Herrenschmidt, IBM Corp.=4 /sp6tio<45a h6ef="drivers/macinto45sh/645dfa65                goto          
   >
  =wf_smr_cpu_powerclass="lisref">sensor_cpu_powerheac, &am;i  
   >
  =wf_smrs="lisref">sensorrright 2005 Benjamin Herrenschmidt, IBM Corp.=4  id6 o  645/a>65right 2005 Benjamin Herrenschmidt, IBM Corp.=4hhre6="dr45ive6s/macintosh/windfar45m_p6457a>65        9f (--ati 
   >
  =tempcr_cpu_tempclass="lisref">sensor_cpu_tempheac, &am;io
 
   >
  =new_sNULs="lisref">WF_SMNULs|= a; init initi! 
   >
  =wf_sm  acss="lisref">sensor acssatio
 
   >
  =fan_css="lisref">sensorrrighatio
 
   >
  =ticks4"41="lisref">wf_sm="41righ,
 c#L5" istr>=s"s quo=/    tam -eac,/i are pnone_)ght 2005 Benjamin Herrenschmidt, IBM Corp.=4 /sp6 "dr42 cl6ss="line" nam 2 L9"45>  6458a>65                9f (atio
 
   >
  =fan_cu_caxc#r erro="lisref">wf_smu_caxc#r erroatio
 
   >
  =fan_css="lisref">sensorrrigh)) {rig 2005 Benjamin Herrenschmidt, IBM Corp.=4 /sp6tsam44 =/6patiosensor_cpu_tempheac, &am;i  
   >
  =wf_smrs="lisref">sensorrright 2005 Benjamin Herrenschmidt, IBM Corp.=4  id6 s t46at=6spatio
  =rcclar_cpu_phdrlass="lisref">sensor_cpu_thdrlass &am;io
 
   >
  =new_sNULs="lisref">WF_SMNULs|= a; init initi! 
   >
  =wf_sm  acss="lisref">sensor acssatio
 
   >
  =fan_css="lisref">sensorrrighatio
 
   >
  =ticks4"41="lisref">wf_sm="41righ,
 c#L5" istr>=s"s quo=/    thd-eac,/i are pnone_)ght 2005 Benjamin Herrenschmidt, IBM Corp.=4 /sp6nL4"45 cl6ss="line" nam 2 L4"46>  6463nt66        9f (aaaaaaaaatio
 
   >
  =fan_cu_caxc#r erro="lisref">wf_smu_caxc#r erroatio
 
   >
  =fan_css="lisref">sensorrrigh)) {rig 2005 Benjamin Herrenschmidt, IBM Corp.=4 /sp6tio<46a h6ef="drivers/macinto46sh/6464go66                goto          
   >
  =wf_smr_cpu_phdrlass="lisref">sensor_cpu_thdrlass &am;i  
   >
  =wf_smrs="lisref">sensorrright 2005 Benjamin Herrenschmidt, IBM Corp.=4  id6 o>  646/a>66right 2005 Benjamin Herrenschmidt, IBM Corp.=4hhre6="dr46ive6s/macintosh/windfar46m_p6467a>66        9f (--ati 
   >
  =tempcr_cpu_tempcclass="lisref">sensor_cpu_powerheac, &am;& atio
 
   >
  =wf_smr_cpu_powerlass="lisref">sensor_cpu_tempheac, &am;& atio
 
   >
  =wf_smr_cpu_phdrlass="lisref">sensor_cpu_thdrlass &amg 2005 Benjamin Herrenschmidt, IBM Corp.=4 /sp6t"dr42 cl6ss="line" nam 2 L9"46>  646/a>66                atio
 
   >
  =wf_smu_failuallcp erros_os="lisref">wf_smu_cpu_fallcp erros_osrigh) ght 2005 Benjamin Herrenschmidt, IBM Corp.=42 id6 sam45 =/6patio
  =rcclau_cpu_f=unify="lisref">wf_smu_cpu_f=unifyvoid)  atio
 
   >
  =wf_sm=unifier_bloss="lisref">wf_sm=unifier_blossvoido
 
   >
  =stclaself="lisref">sensor_lfrigh, 2005 Benjamin Herrenschmidt, IBM Corp.=44hre6=L4"45 cl6ss="line" nam 2 L4"47>  6473nt67        9f (aaaaaaaaaaaaaaaaaaaaaaaaunsign/polong
 
   >
  =wf_smeves/macisref">new_seves/righ,
atio

 
   >
  =stcladatamacisref">new_sdata &amg 2005 Benjamin Herrenschmidt, IBM Corp.=4 /sp6=io<46a h6ef="drivers/macinto47sh/647dfa67     t 2005 Benjamin Herrenschmidt, IBM Corp.=4 /sp6 onew_seves/righght 2005 Benjamin Herrenschmidt, IBM Corp.=4 /sp6 L7"47 cl6ss="line" nam 2 L7"47>  647/a>67             cas 
 
   >
  =wf_smWF_EVENT_NEW_CONTROs="lisref">WF_SMWF_EVENT_NEW_CONTROs    _pm81.c#L9" id2 L9" class="line" nam 2 L946 id6="dr4iive6s/macintosh/windfar4mm_p6477a>67                retur 
   >
  =wf_smass="lisref">DBGc#L8(apm81.c#L5" istr>=s"s quo=/hf: CPUcFnew:9>aloop d\n qs detectedo=/i are p,rightpm81.c#L9" id2 L9" class="line" nam 2 L946 id6="dr42 cl6ss="line" nam 2 L9"47>  6478a>6s                9f (a    ()  atio
 
   >
  =wf_smu_c9>aloop="lisref">wf_smu_c9>aloopvoido

 
   >
  =scaledatamacisref">new_sdata &amgatio
 
   >
  =ticks4"41="lisref">wf_sm="41righht 2005 Benjamin Herrenschmidt, IBM Corp.=46spa6=sam45 =/6patiowf_smu_cpu_f=/po9>aloopvoid) 
   >
  =scaledatamacisref">new_sdata &amgt 2005 Benjamin Herrenschmidt, IBM Corp.=46spa6 s t48at=6spatiowf_smu_readjusta>=s)righ) ght 2005 Benjamin Herrenschmidt, IBM Corp.=42 id6note48how6ver=/spatio68                }righbustkt 2005 Benjamin Herrenschmidt, IBM Corp.=42 id6n"dr47ive6s/macintosh/windfar48 Th6482nt682            cas 
 
   >
  =wf_smWF_EVENT_NEW_SENSOR="lisref">WF_SMWF_EVENT_NEW_SENSOR    _pm81.c#L9" id2 L9" class="line" nam 2 L946 id6=L4"47 cl6ss="line" nam 2 L4"48>  648/a>68        9f (aaaaaaaaa 
   >
  =wf_smass="lisref">DBGc#L8(apm81.c#L5" istr>=s"s quo=/hf: CPUcFnew:r errord\n qs detectedo=/i are p,rightpm81.c#L9" id2 L9" class="line" nam 2 L946 id6tio<48a h6ef="drivers/macinto48sh/648dfa68                goto     ()  atio
 
   >
  =wf_smu_cr erro="lisref">wf_smu_cp errovoido

 
   >
  =scaledatamacisref">new_sdata &amgatio
 
   >
  =ticks4"41="lisref">wf_sm="41righht 2005 Benjamin Herrenschmidt, IBM Corp.=46spa6iowf_smu_cpu_f=/por errovoid) 
   >
  =scaledatamacisref">new_sdata &amgt 2005 Benjamin Herrenschmidt, IBM Corp.=46spa6 L7"47 cl6ss="line" nam 2 L7"48>  648/a>6s                atio
bustkt 2005 Benjamin Herrenschmidt, IBM Corp.=42 id6n"dr4iive6s/macintosh/windfar48m_p6487a>6s             cas 
 
   >
  =wf_smWF_EVENT_TICK="lisref">WF_SMWF_EVENT_TICK    _pm81.c#L9" id2 L9" class="line" nam 2 L946 id6="dr42 cl6ss="line" nam 2 L9"4>>  6488a>68                9f (atio
 
   >
  =fan_cu_cru_fallc9>aloops_os="lisref">wf_smu_cpu_fallc9>aloops_osrigh)& atio
 
   >
  =wf_smu_failuallcp erros_os="lisref">wf_smu_cpu_fallcp erros_osright 2005 Benjamin Herrenschmidt, IBM Corp.=46hre6 sam48 =/6patiowf_smu_cpu_f#L8(strucgt 2005 Benjamin Herrenschmidt, IBM Corp.=46spa6 s t49at=6spatio  6493go6i     t 2005 Benjamin Herrenschmidt, IBM Corp.=4  th6nio<48a h6ef="drivers/macinto49sh/6494go6i      2005 Benjamin Herrenschmidt, IBM Corp.=4  th6nowf_sm=unifier_blossvoido 
   >
  =wf_smu_cpu_feves/s="lisref">wf_smu_cpu_feves/srigh) gt 2005 Benjamin Herrenschmidt, IBM Corp.=4 /sp6iL7"48 cl6ss="line" nam 2 L7"49>  649/a>6s             
 
   >
  =maxcl=unifier_call="lisref">wf_sm=unifier_callpy    o
 
   >
  =wf_smu_cpu_f=unify="lisref">wf_smu_cpu_f=unifyvoidtpm81.c#L9" id2 L9" class="line" nam 2 L946 id6="dr49ive6s/macintosh/windfar49m_p6497a>69     }t 2005 Benjamin Herrenschmidt, IBM Corp.=36 id6 "dr42 cl6ss="line" nam 2 L9"49>  6498a>6s      2005 Benjamin Herrenschmidt, IBM Corp.=36 id6 sam48 =/6patiowf_smu_cinitrp.strucresent in the Darwin 8.2 snapshot property li3 /sp7 s t5aat=7spatiosensoru_f=dbp_hstassvoido
 
   >
  =stclahds="lisref">sensohdsright 2005 Benjamin Herrenschmidt, IBM Corp.=4  id7 2 t5ahow7v/macintosh/windfar49 Th7a>=s)70
 
   >
  =powe7E 1atio
 
   >
  =pid3 am81.c#L6" 7d2 L6" cl7/* 3d,cp4 
   >
  =pid3 7m81.c70        9f (a 
   >
  =stclahds="lisref">sensohdsrigh;i  
   >
  =wf_smru_faxc#rdb_partition="lisref">sensoru_faxc#rdb_partitionvoid) 
   >
  =scaleSMU_SDB_SENSORTREE_ID="lisref">sensoSMU_SDB_SENSORTREE_IDrigh,
 
   >
  =new_sNULs="lisref">WF_SMNULs|= agt 2005 Benjamin Herrenschmidt, IBM Corp.=46spa7d4 L6" cl7/f="drivers/macinto49sh/740dfa7m             tio
 
   >
  =tempchds="lisref">sensohdsrigh;!{right 2005 Benjamin Herrenschmidt, IBM Corp.=38/sp7d5 L6" cl7/="drivers/macintos49h/w7405a>7s                     s atio
 
   >
  =wf_smpu_f=dbp_p errotre1="lisref">wf_smpu_f=dbp_p errotre1voido
 
   >
  =stclass="lisref">sta>=s- *=/ = 2005 Benjamin Herrenschmidt, IBM Corp.=38/sp7d6 L6" cl7/s="line" nam 2 L7"49>  740/a>70                atio
        )  atio
 
   >
  =wf_smpu_f=dbp_p errotre1="lisref">wf_smpu_f=dbp_p errotre1voido
) atio 
   >
  =tempchds="lisref">sensohdsrigh[1]t 2005 Benjamin Herrenschmidt, IBM Corp.=46spa7d7 L6" cl7//macintosh/windfar49m_p7407a>70                      
   >
  =rcclau_cpu_frenh_, max="lisref">wf_smu_cpu_frenh_, max|= a;i  
   >
  =wf_smrs="lisref">sta>=s- *=/atio
 
   >
  =ticks, max_ii="lisref">wf_sm, max_iiright 2005 Benjamin Herrenschmidt, IBM Corp.=4  id7 8 L6" cl7/s="line" nam 2 L9"49>  740/a>70        }right 2005 Benjamin Herrenschmidt, IBM Corp.=4  th7 97"40ive7satiopr>=tkc#L8(atio
 
   >
  =KERN_WARNIINFO="lisref">pr>=tWARNIINFOvoido c#L5" istr>=s"s quo=/hmidt, I: CPUcpInitializo9" ror iMacG5 , max ID;d\n quo=/i are p,rightpm81.c#L9" id2 L9" class="line" nam 2 L9500"
7 s t5ahow7ver=/spatio
  =rcclau_cpu_frenh_, max="lisref">wf_smu_cpu_frenh_, max|= agt 2005 Benjamin Herrenschmidt, IBM Corp.=46spa7 s t4>=sp7t class="comment"> 4* Th741lgo71
 
   >
  =powe7E 1atio
 
   >
  =pid3 am81.c#L6" 7 2 L6" cl7ss="line" nam 2 L4"41>  7413nt71        9f (an;righght 2005 Benjamin Herrenschmidt, IBM Corp.=36 id7 s t41a h7ef="drivers/macinto41sh/7414go71     t 2005 Benjamin Herrenschmidt, IBM Corp.=4  th7 5 L6" cl7f="drivers/macintos41h/w7415a>71      2005 Benjamin Herrenschmidt, IBM Corp.=4  th7 6 L6" cl7ss="line" nam 2 L7"41>  741/a>71     i void tio
 
   >
  =rcclau_cpu_fprob1="lisref">wf_smu_cpu_fprob1void)  atio
 
   >
  =wf_smplatrorm_devic1="lisref">wf_smplatrorm_devic1voido
 
   >
  =stcladdevmacisref">new_sddevright 2005 Benjamin Herrenschmidt, IBM Corp.=46hre7 L7"40ive7s/macintosh/windfar41m_p7417a>71     t 2005 Benjamin Herrenschmidt, IBM Corp.=38/sp7 87"40ive7ss="line" nam 2 L9"41>  7418a>71        atio
 
   >
  =wf_smu_cregister_clies/macisref">new_su_cregister_clies/void) atio 
   >
  =tempcu_cpu_feves/s="lisref">wf_smu_cpu_feves/srighgt 2005 Benjamin Herrenschmidt, IBM Corp.=46spa7 97"40ive7patio 4  Th742lgo72
 
   >
  =powe7E 1atio
 
   >
  =pid3 am81.c#L6" 7 L4"42 cl7ss="line" nam 2 L4"42>  7423go7i     i void tio
 
   >
  =rccla__devexi/macisref">new_s__devexi/voido 
   >
  =wf_smu_cpu_fremov1="lisref">wf_smu_cpu_fremov1void)  atio
 
   >
  =wf_smplatrorm_devic1="lisref">wf_smplatrorm_devic1voido
 
   >
  =stcladdevmacisref">new_sddevright 2005 Benjamin Herrenschmidt, IBM Corp.=46hre7 s t42a h7ef="drivers/macinto42sh/742dfa72     t 2005 Benjamin Herrenschmidt, IBM Corp.=4 /sp7 5 L6" cl7f="drivers/macintos42h/w742far72              
   >
  =wf_smu_cunregister_clies/macisref">new_su_cunregister_clies/void) atio 
   >
  =tempcu_cpu_feves/s="lisref">wf_smu_cpu_feves/srighgt 2005 Benjamin Herrenschmidt, IBM Corp.=46spa7 L7"40 cl7ss="line" nam 2 L7"42>  742/a>72right 2005 Benjamin Herrenschmidt, IBM Corp.=4hhre7="dr42ive7s/macintosh/windfar42m_p7427ar72              #L6" id2 L6" cla/* Fill XXX Weedon't have yet a guarantee that our callback isn'tpyright 2005 Benjamin Herrenschmidt, IBM Corp.=4 ts 7="dr42 cl7ss="line" nam 2 L9"42>  742/a>72     sed is 36Das 312
 #############*s I progress when n;righo9" rrom u_cunregister_clies/, sopyright 2005 Benjamin Herrenschmidt, IBM Corp.=4 ts 7=97"40ive7patio
  =wf_smmslees="lisref">sensomsleesvoid)1000gt 2005 Benjamin Herrenschmidt, IBM Corp.=46spa79=/a43ive7s/macintosh/windfar43 Th7432nt73
 
   >
  =powe7E 1atio
 
   >
  =pid3 am81.c#L6" 7 L4"4  cl7ss="line" nam 2 L4"4>>  7433go7i        9f (a #L6" id2 L6" cla/* Fill Releas 
allsp erros#*opyright 2005 Benjamin Herrenschmidt, IBM Corp.=4 ts 7ns t42a h7ef="drivers/macinto43sh/7434go73              #L6" id2 L6" cla/* Fill Ontl, re:9rappy racecpIedon't think we have any guarantee hertpyright 2005 Benjamin Herrenschmidt, IBM Corp.=4 ts 7n5 L6" cl7f="drivers/macintos43h/w7435a>73     sed is 36Das 312
 #############*s/hat the:at"s bute callback won't race with the:r errorbeeo9";rright 2005 Benjamin Herrenschmidt, IBM Corp.=4 ts 7nL7"40 cl7ss="line" nam 2 L7"43>  743/a>73     sed is 36Das 312
 #############*sdisposed of, and I'mfoun 100d\n q certain what best way t 1dealpyright 2005 Benjamin Herrenschmidt, IBM Corp.=4 ts 7="dr43ive7s/macintosh/windfar43m_p7437a>73     sed is 36Das 312
 #############* with that except by addo9" losss
allso2 L... I'll do thatpyright 2005 Benjamin Herrenschmidt, IBM Corp.=4 ts 7="dr42 cl7ss="line" nam 2 L9"43>  743/a>73     sed is 36Das 312
 #############*seves/ually but heh, whosever rmmod machvmodule anyway ?pyright 2005 Benjamin Herrenschmidt, IBM Corp.=4 ts 7=97"40ive7patio
  =rcclar_cpu_tempcclass="lisref">sensor_cpu_powerheac, &amt 2005 Benjamin Herrenschmidt, IBM Corp.=46hre7note44how7ver=/spatio
  =tempcu_cpuc#r erro="lisref">wf_smu_cpuc#r erroatio
 
   >
  =KERN_r_cpu_tempcclass="lisref">sensor_cpu_powerheac, &amtt 2005 Benjamin Herrenschmidt, IBM Corp.=46spa7="dr44ive7s/macintosh/windfar44 Th7442nt74             tio
 
   >
  =rcclar_cpu_powerlass="lisref">sensor_cpu_tempheac, &amt 2005 Benjamin Herrenschmidt, IBM Corp.=46hre7nL4"4  cl7ss="line" nam 2 L4"44>  7443nt74        9f (aaaaaaaaa 
   >
  =wf_smu_cpuc#r erro="lisref">wf_smu_cpuc#r erroatio
 
   >
  =KERN_r_cpu_tempclass="lisref">sensor_cpu_tempheac, &amtt 2005 Benjamin Herrenschmidt, IBM Corp.=46spa7=s t42a h7ef="drivers/macinto4ssh/7444go74             tio
 
   >
  =tempcr_cpu_phdrlass="lisref">sensor_cpu_thdrlass &amg 2005 Benjamin Herrenschmidt, IBM Corp.=4 /sp7iowf_smu_cpuc#r erroatio
 
   >
  =KERN_r_cpu_thdrlass="lisref">sensor_cpu_thdrlass &amgt 2005 Benjamin Herrenschmidt, IBM Corp.=46spa7=L7"40 cl7ss="line" nam 2 L7"44>  744/a>74right 2005 Benjamin Herrenschmidt, IBM Corp.=4hhre7="dr44ive7s/macintosh/windfar44m_p7447ar74              #L6" id2 L6" cla/* Fill Releas 
alls9>aloops#*opyright 2005 Benjamin Herrenschmidt, IBM Corp.=4 ts 7 "dr42 cl7ss="line" nam 2 L9"44>  744/a>74        9f (atio
 
   >
  =fan_cpu_mam class="lisref">fan_cpu_mam /mac)right 2005 Benjamin Herrenschmidt, IBM Corp.=46 th7 sam44 =/7patiowf_smu_cpuc#9>aloopatio
 
   >
  =KERN_pu_mam class="lisref">fan_cpu_mam /mac);right 2005 Benjamin Herrenschmidt, IBM Corp.=471"
7 s t45at=7spatiowf_smpu_mhiright 2005 Benjamin Herrenschmidt, IBM Corp.=46 th7 ote44how7ver=/spatio
  =tempcu_cpuc#9>aloop="lisref">wf_smu_cpuc#9>aloopatio
 
   >
  =KERN_pu_mhi="lisref">wf_smpu_mhirightt 2005 Benjamin Herrenschmidt, IBM Corp.=471"
7="dr45ive7s/macintosh/windfar45 Th745lgo75             tio
 
   >
  =rcclapu_mo	=/es="lisref">parampu_mo	=/esright 2005 Benjamin Herrenschmidt, IBM Corp.=46hre7 L4"45 cl7ss="line" nam 2 L4"45>  7453nt75        9f (aaaaaaaaa 
   >
  =tempcu_cpuc#9>aloop="lisref">wf_smu_cpuc#9>aloopatio
 
   >
  =KERN_pu_mo	=/es="lisref">parampu_mo	=/esrightt 2005 Benjamin Herrenschmidt, IBM Corp.=46 id7tio<45a h7ef="drivers/macinto45sh/745dfa75             tio
 
   >
  =tempceq_assmpclass="lisref">cpufreq_assmp/mac)right 2005 Benjamin Herrenschmidt, IBM Corp.=46hre7 owf_smu_cpuc#9>aloopatio
 
   >
  =KERN_eq_assmpclass="lisref">cpufreq_assmp/mac);right 2005 Benjamin Herrenschmidt, IBM Corp.=46 id7 L7"45 cl7ss="line" nam 2 L7"45>  745/a>75right 2005 Benjamin Herrenschmidt, IBM Corp.=4hhre7="dr45ive7s/macintosh/windfar45m_p7457a>75              #L6" id2 L6" cla/* Fill Destroy:9>aloop (s gori  s atioures#*opyright 2005 Benjamin Herrenschmidt, IBM Corp.=4 ts 7 "dr42 cl7ss="line" nam 2 L9"45>  7458a>75        atio
 
   >
  =wf_smkfre1="lisref">wf_smkfre1atio
 
   >
  =KERN_u_cpu_f=ys_pees="lisref">wf_smu_cpu_f=ys_pees;right 2005 Benjamin Herrenschmidt, IBM Corp.=46 id7 sam44 =/7patiowf_smkfre1atio
 
   >
  =KERN_u_cpu_fam /pees="lisref">wf_smu_cpu_fam /pees;right 2005 Benjamin Herrenschmidt, IBM Corp.=46 id7 s t46at=7spatio  7463nt76      2005 Benjamin Herrenschmidt, IBM Corp.=4  th7nio<45a h7ef="drivers/macinto46sh/7464go76     i void   atio
 
   >
  =wf_smplatrorm_dmin H="lisref">wf_smplatrorm_dmin Hvoido 
   >
  =wf_smu_cpu_fdmin H="lisref">wf_smu_cpu_fdmin Hrigh) gt 2005 Benjamin Herrenschmidt, IBM Corp.=4 /sp7 owf_smprob1void o
 
   >
  =wf_smu_cpu_fprob1="lisref">wf_smu_cpu_fprob1voidtpm81.c#L9" id2 L9" class="line" nam 2 L9500"
7iL7"45 cl7ss="line" nam 2 L7"4>>  746/a>76             
 
   >
  =maxclremov1="lisref">wf_smremov1void o
 
   >
  =wf_sm__devexi/_s="lisref">cpufr__devexi/_satio
 
   >
  =KERN_u_cpu_fremov1="lisref">wf_smu_cpu_fremov1void)tpm81.c#L9" id2 L9" class="line" nam 2 L9500"
7i"dr45ive7s/macintosh/windfar46m_p7467a>76        9f (-
 
   >
  =maxcldmin H="lisref">wf_smdmin Hrigh) gt 2005 Benjamin Herrenschmidt, IBM Corp.=4 /sp7 "dr42 cl7ss="line" nam 2 L9"46>  746/a>76                atio

 
   >
  =maxcl="41="lisref">wf_sm="41righ o
 c#L5" istr>=s"s quo=/hmidt, I: CPU/i are p,rightpm81.c#L9" id2 L9" class="line" nam 2 L9500"
7 sam45 =/7patiowf_smown H      o
 
   >
  =wf_smTHIS_MODULE="lisref">wf_smTHIS_MODULEvoidtpm81.c#L9" id2 L9" class="line" nam 2 L9500"
7 s t47at=7spatio  7473nt77      2005 Benjamin Herrenschmidt, IBM Corp.=4  th7=io<46a h7ef="drivers/macinto47sh/747dfa77     i void tio
 
   >
  =rccla__init="lisref">cpufr__initvoido 
   >
  =wf_smu_cpu_finit="lisref">cpufru_cpu_finitatio
resent in the Darwin 8.2 snapshot property li3 /sp7 o  747/a>77             tio
 
   >
  =rcclarc="lisref">wf_smrcrigh o
- 
   >
  =rcclaENODEV="lisref">wf_smENODEVright 2005 Benjamin Herrenschmidt, IBM Corp.=4  id7="dr4iive7s/macintosh/windfar4mm_p7477a>77      2005 Benjamin Herrenschmidt, IBM Corp.=4  id7="dr42 cl7ss="line" nam 2 L9"47>  7478a>77        9f (atio
 
   >
  =fan_coffrenhm 2_is#9>mpvoibl1="lisref">wf_smoffrenhm 2_is#9>mpvoibl1atio
 c#L5" istr>=s"s quo=/hmidtPeac,Mac8,1/i are pnone_) || 2005 Benjamin Herrenschmidt, IBM Corp.=4  id7=sam45 =/7patiowf_smoffrenhm 2_is#9>mpvoibl1atio
 c#L5" istr>=s"s quo=/hmidtPeac,Mac8,2/i are pnone_)g 2005 Benjamin Herrenschmidt, IBM Corp.=4  id7 s t48at=7spatiowf_smrcrigh o
 
   >
  =wf_smu_cinitrp.="lisref">wf_smu_cinitrp.strucht 2005 Benjamin Herrenschmidt, IBM Corp.=46 id7note48how7ver=/spatio78right 2005 Benjamin Herrenschmidt, IBM Corp.=44hre7n"dr47ive7s/macintosh/windfar48 Th7482nt78             tio
 
   >
  =rcclarc="lisref">wf_smrcrigh o{right 2005 Benjamin Herrenschmidt, IBM Corp.=38/sp7=L4"47 cl7ss="line" nam 2 L4"48>  748/a>78     #ifdef
 
   >
  =wf_smMODULE="lisref">wf_smMODULEvoid 2005 Benjamin Herrenschmidt, IBM Corp.=38/sp7=io<46a h7ef="drivers/macinto48sh/748dfa78                goto  
   >
  =maxclrequest_module="lisref">wf_smrequest_moduleatio
 c#L5" istr>=s"s quo=/hmidt, IBM Corpu_fa>aloops/i are pnone_)t 2005 Benjamin Herrenschmidt, IBM Corp.=46 id7nowf_smrequest_moduleatio
 c#L5" istr>=s"s quo=/hmidt, IBM Corpu_fp erros/i are pnone_)t 2005 Benjamin Herrenschmidt, IBM Corp.=46 id7nL7"47 cl7ss="line" nam 2 L7"48>  748/a>7s                atio
 
   >
  =wf_smrequest_module="lisref">wf_smrequest_moduleatio
 c#L5" istr>=s"s quo=/hmidt, IBM Corlm75fp erro/i are pnone_)t 2005 Benjamin Herrenschmidt, IBM Corp.=46 id7n"dr4iive7s/macintosh/windfar48m_p7487a>78                      
   >
  =rcclarequest_module="lisref">wf_smrequest_moduleatio
 c#L5" istr>=s"s quo=/hmidt, IBM Coreq_assmp/mac)/i are pnone_)t 2005 Benjamin Herrenschmidt, IBM Corp.=46 id7n"dr42 cl7ss="line" nam 2 L9"4>>  7488a>78      2005 Benjamin Herrenschmidt, IBM Corp.=36 id7 sam48 =/7patiowf_smplatrorm_dmin Hcregistervoid) atio 
   >
  =tempcu_cpu_fdmin H="lisref">wf_smu_cpu_fdmin Hrigh)t 2005 Benjamin Herrenschmidt, IBM Corp.=46 id7note49how7ver=/spatio  7493go79        9f (an;righg 
   >
  =rcclarc="lisref">wf_smrcright 2005 Benjamin Herrenschmidt, IBM Corp.=46 id7nio<46a h7ef="drivers/macinto49sh/7494go79     t 2005 Benjamin Herrenschmidt, IBM Corp.=4  th7no  749/a>79     i void atio
 
   >
  =wf_sm__exi/macisref">new_s__exi/voido 
   >
  =wf_smu_cpu_fexi/macisref">new_su_cpu_fexi/atio
resent in the Darwin 8.2 snapshot property li3 /sp7="dr49ive7s/macintosh/windfar49m_p7497a>79     t 2005 Benjamin Herrenschmidt, IBM Corp.=38/sp7 "dr42 cl7ss="line" nam 2 L9"49>  7498a>7s      2005 Benjamin Herrenschmidt, IBM Corp.=36 id7 sam48 =/7patiowf_smplatrorm_dmin Hcunregistervoid) atio 
   >
  =tempcu_cpu_fdmin H="lisref">wf_smu_cpu_fdmin Hrigh)t 2005 Benjamin Herrenschmidt, IBM Corp.=46 id8 s t5aat=8spatio
  =pid3 8m81.c80      
   >
  =tempcmodulefinit="lisref">cpufrmodulefinitatio
 
   >
  =KERN_u_cpu_finit="lisref">cpufru_cpu_finitatio)t 2005 Benjamin Herrenschmidt, IBM Corp.=46 id8 4 L6" cl8/f="drivers/macinto49sh/840dfa8m      
   >
  =tempcmodulefexi/macisref">new_smodulefexi/atio
 
   >
  =KERN_u_cpu_fexi/macisref">new_su_cpu_fexi/atio)t 2005 Benjamin Herrenschmidt, IBM Corp.=46 id8 5 L6" cl8/="drivers/macintos49h/w8405a>80      2005 Benjamin Herrenschmidt, IBM Corp.=4  th8d6 L6" cl8/s="line" nam 2 L7"49>  840/a>80      
   >
  =wf_smMODULE_AUTHOR="lisref">WF_SMMODULE_AUTHORatio
 c#L5" istr>=s"s quo=/hmidtBenjamin Herr erchmidt <benh@kernel.crash qu.orgtio
/i are pnone_)t 2005 Benjamin Herrenschmidt, IBM Corp.=46 id8d7 L6" cl8//macintosh/windfar49m_p8407a>80      
   >
  =wf_smMODULE_DESCRIPTION="lisref">WF_SMMODULE_DESCRIPTIONatio
 c#L5" istr>=s"s quo=/hmidtThermal:9>aloop (&gid ror iMac G5/i are pnone_)t 2005 Benjamin Herrenschmidt, IBM Corp.=46 id8d8 L6" cl8/s="line" nam 2 L9"49>  840/a>80      
   >
  =wf_smMODULE_LICENSE="lisref">wf_smMODULE_LICENSEatio
 c#L5" istr>=s"s quo=/hmidtGPL/i are pnone_)t 2005 Benjamin Herrenschmidt, IBM Corp.=46 id8d9 L6" cl8/atioWF_SMMODULE_ALIASatio
 c#L5" istr>=s"s quo=/hmidtplatrorm:, I: CPU/i are p,righ)t 2005 Benjamin Herrenschmidt, IBM Corp.=46 id8 s t4hat=8spatiolxr@ef=ux.novoid.
lxr.ef=ux.no k IBly hosted by 2005 Benjhttp://www.redpill-ef=pro.no">Redpill Lf=pro ASatio, provider of Lf=ux 9>asulto9" and operations servic1s since 1995.