Palacios Public Git Repository

To checkout Palacios execute

  git clone http://v3vee.org/palacios/palacios.web/palacios.git
This will give you the master branch. You probably want the devel branch or one of the release branches. To switch to the devel branch, simply execute
  cd palacios
  git checkout --track -b devel origin/devel
The other branches are similar.


Linux kernel compatability enhancements (through 3.19)
[palacios.git] / linux_module / iface-pwrstat.c
index a823946..8157fa2 100644 (file)
@@ -47,7 +47,7 @@ static struct rapl_domain rapl_domains[] = {
        [RAPL_DOMAIN_PKG] = {
                .domain_id = RAPL_DOMAIN_PKG,
                .msrs   = {
-                       .limit  = MSR_PKG_RAPL_POWER_LIMIT,
+                       .limit  = MSR_PKG_POWER_LIMIT,
                        .status = MSR_PKG_ENERGY_STATUS,
                },
                .valid  = 1,
@@ -109,7 +109,7 @@ static int rapl_check_unit (void)
        power_unit_divisor = 1 << value;
 
        /* time unit: 1/time_unit_divisor Seconds */
-       value =(output & TIME_UNIT_MASK) >> TIME_UNIT_OFFSET;
+       value = (output & TIME_UNIT_MASK) >> TIME_UNIT_OFFSET;
        time_unit_divisor = 1 << value;
 
        return 0;