vserver 1.9.5.x5
[linux-2.6.git] / arch / i386 / kernel / cpu / cpufreq / powernow-k8.h
index a95db64..63ebc84 100644 (file)
@@ -21,8 +21,7 @@ struct powernow_k8_data {
        u32 plllock; /* pll lock time, units 1 us */
 
        /* keep track of the current fid / vid */
-       u32 currvid;
-       u32 currfid;
+       u32 currvid, currfid;
 
        /* the powernow_table includes all frequency and vid/fid pairings:
         * fid are the lower 8 bits of the index, vid are the upper 8 bits.
@@ -152,14 +151,14 @@ struct psb_s {
        u8 signature[10];
        u8 tableversion;
        u8 flags1;
-       u16 voltagestabilizationtime;
+       u16 vstable;
        u8 flags2;
-       u8 numpst;
+       u8 num_tables;
        u32 cpuid;
        u8 plllocktime;
        u8 maxfid;
        u8 maxvid;
-       u8 numpstates;
+       u8 numps;
 };
 
 /* Pairs of fid/vid values are appended to the version 1.4 PSB table. */
@@ -168,11 +167,7 @@ struct pst_s {
        u8 vid;
 };
 
-#ifdef DEBUG
-#define dprintk(msg...) printk(msg)
-#else
-#define dprintk(msg...) do { } while(0)
-#endif
+#define dprintk(msg...) cpufreq_debug_printk(CPUFREQ_DEBUG_DRIVER, "powernow-k8", msg)
 
 static int core_voltage_pre_transition(struct powernow_k8_data *data, u32 reqvid);
 static int core_voltage_post_transition(struct powernow_k8_data *data, u32 reqvid);