This week only. Pastebin PRO Accounts Christmas Special! Don't miss out!Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Jan 18th, 2011  |  syntax: Diff  |  size: 5.47 KB  |  views: 48  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. --- speedstep-centrino.c.orig   2011-01-18 12:37:40.903137002 +0100
  2. +++ speedstep-centrino.c.patched        2011-01-18 12:38:20.507137002 +0100
  3. @@ -46,6 +46,7 @@
  4.         CPU_DOTHAN_A1,
  5.         CPU_DOTHAN_A2,
  6.         CPU_DOTHAN_B0,
  7. +       CPU_DOTHAN_C0,
  8.         CPU_MP4HT_D0,
  9.         CPU_MP4HT_E0,
  10.  };
  11. @@ -55,6 +56,7 @@
  12.         [CPU_DOTHAN_A1] = { 6, 13, 1 },
  13.         [CPU_DOTHAN_A2] = { 6, 13, 2 },
  14.         [CPU_DOTHAN_B0] = { 6, 13, 6 },
  15. +       [CPU_DOTHAN_C0] = { 6, 13, 8 },
  16.         [CPU_MP4HT_D0]  = {15,  3, 4 },
  17.         [CPU_MP4HT_E0]  = {15,  4, 1 },
  18.  };
  19. @@ -197,6 +199,122 @@
  20.  };
  21.  #undef OP
  22.  
  23. +#define OPEX(mhz, base, mva, mvb, mvc, mvd)                     \
  24. +{                                                               \
  25. +        .frequency = (mhz) * 1000,                              \
  26. +        .index = (((mhz)/(base)) << 8) | ((mva - 700) / 16)     \
  27. +}
  28. +
  29. +/* Intel Pentium M processor 715 / 1.50 GHz (Sonoma) */
  30. +static struct cpufreq_frequency_table sonoma_1500[] =
  31. +
  32. +/* standard values */
  33. +{
  34. +        OPEX( 600, 100,  988,  988,  988,  988),
  35. +        OPEX( 800, 100, 1068, 1068, 1068, 1052),
  36. +        OPEX(1000, 100, 1148, 1148, 1132, 1116),
  37. +        OPEX(1200, 100, 1228, 1212, 1212, 1180),
  38. +        OPEX(1500, 100, 1340, 1324, 1308, 1276),
  39. +        { .frequency = CPUFREQ_TABLE_END }
  40. +};
  41. +
  42. +
  43. +/* undervolt values
  44. +{
  45. +        OPEX( 600, 100,  748,  988,  988,  988),
  46. +        OPEX( 800, 100,  860, 1068, 1068, 1052),
  47. +        OPEX(1000, 100,  940, 1148, 1132, 1116),
  48. +        OPEX(1200, 100, 1030, 1212, 1212, 1180),
  49. +        OPEX(1500, 100, 1116, 1324, 1308, 1276),
  50. +        { .frequency = CPUFREQ_TABLE_END }
  51. +};
  52. +*/
  53. +
  54. +/* undervolt values2  
  55. +{
  56. +        OPEX( 600, 100,  732,  988,  988,  988),
  57. +        OPEX( 800, 100,  844, 1068, 1068, 1052),
  58. +        OPEX(1000, 100,  924, 1148, 1132, 1116),
  59. +        OPEX(1200, 100, 1004, 1212, 1212, 1180),
  60. +        OPEX(1500, 100, 1084, 1324, 1308, 1276),
  61. +        { .frequency = CPUFREQ_TABLE_END }
  62. +};
  63. +*/
  64. +
  65. +/* Intel Pentium M processor 730 / 1.60 GHz (Sonoma) */
  66. +static struct cpufreq_frequency_table sonoma_1596[] =
  67. +{
  68. +        OPEX( 798, 133,  988,  988,  988,  988),
  69. +        OPEX(1064, 133, 1116, 1111, 1084, 1079),
  70. +        OPEX(1330, 133, 1244, 1233, 1180, 1169),
  71. +        OPEX(1596, 133, 1356, 1356, 1260, 1260),
  72. +        { .frequency = CPUFREQ_TABLE_END }
  73. +};
  74. +
  75. +/* Intel Pentium M processor 740 / 1.73 GHz (Sonoma) */
  76. +static struct cpufreq_frequency_table sonoma_1729[] =
  77. +{
  78. +        OPEX( 798, 133,  988,  988,  988,  988),
  79. +        OPEX(1064, 133, 1100, 1093, 1068, 1066),
  80. +        OPEX(1330, 133, 1212, 1198, 1148, 1143),
  81. +        OPEX(1729, 133, 1356, 1356, 1260, 1260),
  82. +        { .frequency = CPUFREQ_TABLE_END }
  83. +};
  84. +
  85. +/* Intel Pentium M processor 750 / 1.86 GHz (Sonoma) */
  86. +static struct cpufreq_frequency_table sonoma_1862[] =
  87. +{
  88. +        OPEX( 798, 133,  988,  988,  988,  988),
  89. +        OPEX(1064, 133, 1084, 1080, 1068, 1056),
  90. +        OPEX(1330, 133, 1180, 1172, 1132, 1124),
  91. +        OPEX(1596, 133, 1276, 1264, 1196, 1192),
  92. +        OPEX(1862, 133, 1356, 1356, 1260, 1260),
  93. +        { .frequency = CPUFREQ_TABLE_END }
  94. +};
  95. +
  96. +/* Intel Pentium M processor 760 / 2.00 GHz (Sonoma) */
  97. +static struct cpufreq_frequency_table sonoma_1995[] =
  98. +{
  99. +        OPEX( 798, 133, 988, 988, 988, 988),
  100. +        OPEX(1064, 133, 1084, 1070, 1052, 1048),
  101. +        OPEX(1330, 133, 1164, 1152, 1116, 1109),
  102. +        OPEX(1596, 133, 1244, 1233, 1180, 1169),
  103. +        OPEX(1995, 133, 1356, 1356, 1260, 1260),
  104. +        { .frequency = CPUFREQ_TABLE_END }
  105. +};
  106. +/* Intel Pentium M processor 770 / 2.13 GHz (Sonoma) */
  107. +static struct cpufreq_frequency_table sonoma_2128[] =
  108. +{
  109. +        OPEX( 798, 133, 988, 988, 988, 988),
  110. +        OPEX(1064, 133, 1068, 1065, 1052, 1042),
  111. +        OPEX(1330, 133, 1148, 1142, 1100, 1097),
  112. +        OPEX(1596, 133, 1228, 1218, 1164, 1151),
  113. +        OPEX(1862, 133, 1308, 1295, 1212, 1206),
  114. +        OPEX(2128, 133, 1372, 1372, 1260, 1260),
  115. +        { .frequency = CPUFREQ_TABLE_END }
  116. +};
  117. +
  118. +/* Intel Pentium M processor 780 / 2.26 GHz (Sonoma) */
  119. +static struct cpufreq_frequency_table sonoma_2261[] =
  120. +{
  121. +        OPEX( 798, 133, 988, 988, 988, 988),
  122. +        OPEX(1064, 133, 1068, 1064, 1052, 1037),
  123. +        OPEX(1330, 133, 1148, 1139, 1100, 1087),
  124. +        OPEX(1596, 133, 1228, 1215, 1148, 1136),
  125. +        OPEX(1862, 133, 1292, 1291, 1196, 1186),
  126. +        OPEX(2261, 133, 1404, 1404, 1260, 1260),
  127. +        { .frequency = CPUFREQ_TABLE_END }
  128. +};
  129. +
  130. +#undef OPEX
  131. +
  132. +#define SONOMA(cpuid, max, base, name)  \
  133. +{       .cpu_id         = cpuid,        \
  134. +        .model_name     = "Intel(R) Pentium(R) M processor " name "GHz", \
  135. +        .max_freq       = (max)*1000,   \
  136. +        .op_points      = sonoma_##max, \
  137. +}
  138. +
  139.  #define _BANIAS(cpuid, max, name)      \
  140.  {      .cpu_id         = cpuid,        \
  141.         .model_name     = "Intel(R) Pentium(R) M processor " name "MHz", \
  142. @@ -219,6 +337,15 @@
  143.         BANIAS(1600),
  144.         BANIAS(1700),
  145.  
  146. +        /* Builtin tables for Dothan C0 CPUs, a.k.a Sonoma */
  147. +        SONOMA(&cpu_ids[CPU_DOTHAN_C0], 1500, 100, "1.50"),
  148. +        SONOMA(&cpu_ids[CPU_DOTHAN_C0], 1596, 133, "1.60"),
  149. +        SONOMA(&cpu_ids[CPU_DOTHAN_C0], 1729, 133, "1.73"),
  150. +        SONOMA(&cpu_ids[CPU_DOTHAN_C0], 1862, 133, "1.86"),
  151. +        SONOMA(&cpu_ids[CPU_DOTHAN_C0], 1995, 133, "2.00"),
  152. +        SONOMA(&cpu_ids[CPU_DOTHAN_C0], 2128, 133, "2.13"),
  153. +        SONOMA(&cpu_ids[CPU_DOTHAN_C0], 2261, 133, "2.26"),
  154. +
  155.         /* NULL model_name is a wildcard */
  156.         { &cpu_ids[CPU_DOTHAN_A1], NULL, 0, NULL },
  157.         { &cpu_ids[CPU_DOTHAN_A2], NULL, 0, NULL },
clone this paste RAW Paste Data