[haiku-commits] r35759 - haiku/trunk/src/add-ons/kernel/drivers/power/enhanced_speedstep

  • From: superstippi@xxxxxx
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Thu, 4 Mar 2010 13:33:00 +0100 (CET)

Author: stippi
Date: 2010-03-04 13:33:00 +0100 (Thu, 04 Mar 2010)
New Revision: 35759
Changeset: http://dev.haiku-os.org/changeset/35759/haiku

Modified:
   haiku/trunk/src/add-ons/kernel/drivers/power/enhanced_speedstep/frequency.cpp
Log:
Fixed error spotted by Axel, which I introduced in r35756. The bus value didn't
get assigned anymore. Sorry about that!


Modified: 
haiku/trunk/src/add-ons/kernel/drivers/power/enhanced_speedstep/frequency.cpp
===================================================================
--- 
haiku/trunk/src/add-ons/kernel/drivers/power/enhanced_speedstep/frequency.cpp   
    2010-03-04 10:38:04 UTC (rev 35758)
+++ 
haiku/trunk/src/add-ons/kernel/drivers/power/enhanced_speedstep/frequency.cpp   
    2010-03-04 12:33:00 UTC (rev 35759)
@@ -146,7 +146,7 @@
        uint16 id = msr >> 32;
        int32 bus = 0;
        if (id >> 8)
-               freq / (id >> 8);
+               bus = freq / (id >> 8);
 
        TRACE("est: Guessed bus clock (high) of %d MHz\n", int(bus));
        if (!bus_speed_ok(bus)) {


Other related posts:

  • » [haiku-commits] r35759 - haiku/trunk/src/add-ons/kernel/drivers/power/enhanced_speedstep - superstippi