diff options
23 files changed, 155 insertions, 152 deletions
diff --git a/arch/mips/loongson/lemote-2f/clock.c b/arch/mips/loongson/lemote-2f/clock.c index aed32b88576c..e1f427f4f5f3 100644 --- a/arch/mips/loongson/lemote-2f/clock.c +++ b/arch/mips/loongson/lemote-2f/clock.c | |||
@@ -28,16 +28,16 @@ enum { | |||
28 | }; | 28 | }; |
29 | 29 | ||
30 | struct cpufreq_frequency_table loongson2_clockmod_table[] = { | 30 | struct cpufreq_frequency_table loongson2_clockmod_table[] = { |
31 | {DC_RESV, CPUFREQ_ENTRY_INVALID}, | 31 | {0, DC_RESV, CPUFREQ_ENTRY_INVALID}, |
32 | {DC_ZERO, CPUFREQ_ENTRY_INVALID}, | 32 | {0, DC_ZERO, CPUFREQ_ENTRY_INVALID}, |
33 | {DC_25PT, 0}, | 33 | {0, DC_25PT, 0}, |
34 | {DC_37PT, 0}, | 34 | {0, DC_37PT, 0}, |
35 | {DC_50PT, 0}, | 35 | {0, DC_50PT, 0}, |
36 | {DC_62PT, 0}, | 36 | {0, DC_62PT, 0}, |
37 | {DC_75PT, 0}, | 37 | {0, DC_75PT, 0}, |
38 | {DC_87PT, 0}, | 38 | {0, DC_87PT, 0}, |
39 | {DC_DISABLE, 0}, | 39 | {0, DC_DISABLE, 0}, |
40 | {DC_RESV, CPUFREQ_TABLE_END}, | 40 | {0, DC_RESV, CPUFREQ_TABLE_END}, |
41 | }; | 41 | }; |
42 | EXPORT_SYMBOL_GPL(loongson2_clockmod_table); | 42 | EXPORT_SYMBOL_GPL(loongson2_clockmod_table); |
43 | 43 | ||
diff --git a/drivers/cpufreq/cris-artpec3-cpufreq.c b/drivers/cpufreq/cris-artpec3-cpufreq.c index d4573032cbbc..601b88c490cf 100644 --- a/drivers/cpufreq/cris-artpec3-cpufreq.c +++ b/drivers/cpufreq/cris-artpec3-cpufreq.c | |||
@@ -15,9 +15,9 @@ static struct notifier_block cris_sdram_freq_notifier_block = { | |||
15 | }; | 15 | }; |
16 | 16 | ||
17 | static struct cpufreq_frequency_table cris_freq_table[] = { | 17 | static struct cpufreq_frequency_table cris_freq_table[] = { |
18 | {0x01, 6000}, | 18 | {0, 0x01, 6000}, |
19 | {0x02, 200000}, | 19 | {0, 0x02, 200000}, |
20 | {0, CPUFREQ_TABLE_END}, | 20 | {0, 0, CPUFREQ_TABLE_END}, |
21 | }; | 21 | }; |
22 | 22 | ||
23 | static unsigned int cris_freq_get_cpu_frequency(unsigned int cpu) | 23 | static unsigned int cris_freq_get_cpu_frequency(unsigned int cpu) |
diff --git a/drivers/cpufreq/cris-etraxfs-cpufreq.c b/drivers/cpufreq/cris-etraxfs-cpufreq.c index 13c3361437f7..22b2cdde74d9 100644 --- a/drivers/cpufreq/cris-etraxfs-cpufreq.c +++ b/drivers/cpufreq/cris-etraxfs-cpufreq.c | |||
@@ -15,9 +15,9 @@ static struct notifier_block cris_sdram_freq_notifier_block = { | |||
15 | }; | 15 | }; |
16 | 16 | ||
17 | static struct cpufreq_frequency_table cris_freq_table[] = { | 17 | static struct cpufreq_frequency_table cris_freq_table[] = { |
18 | {0x01, 6000}, | 18 | {0, 0x01, 6000}, |
19 | {0x02, 200000}, | 19 | {0, 0x02, 200000}, |
20 | {0, CPUFREQ_TABLE_END}, | 20 | {0, 0, CPUFREQ_TABLE_END}, |
21 | }; | 21 | }; |
22 | 22 | ||
23 | static unsigned int cris_freq_get_cpu_frequency(unsigned int cpu) | 23 | static unsigned int cris_freq_get_cpu_frequency(unsigned int cpu) |
diff --git a/drivers/cpufreq/elanfreq.c b/drivers/cpufreq/elanfreq.c index c987e94708f5..7f5d2a68c353 100644 --- a/drivers/cpufreq/elanfreq.c +++ b/drivers/cpufreq/elanfreq.c | |||
@@ -56,15 +56,15 @@ static struct s_elan_multiplier elan_multiplier[] = { | |||
56 | }; | 56 | }; |
57 | 57 | ||
58 | static struct cpufreq_frequency_table elanfreq_table[] = { | 58 | static struct cpufreq_frequency_table elanfreq_table[] = { |
59 | {0, 1000}, | 59 | {0, 0, 1000}, |
60 | {1, 2000}, | 60 | {0, 1, 2000}, |
61 | {2, 4000}, | 61 | {0, 2, 4000}, |
62 | {3, 8000}, | 62 | {0, 3, 8000}, |
63 | {4, 16000}, | 63 | {0, 4, 16000}, |
64 | {5, 33000}, | 64 | {0, 5, 33000}, |
65 | {6, 66000}, | 65 | {0, 6, 66000}, |
66 | {7, 99000}, | 66 | {0, 7, 99000}, |
67 | {0, CPUFREQ_TABLE_END}, | 67 | {0, 0, CPUFREQ_TABLE_END}, |
68 | }; | 68 | }; |
69 | 69 | ||
70 | 70 | ||
diff --git a/drivers/cpufreq/exynos4210-cpufreq.c b/drivers/cpufreq/exynos4210-cpufreq.c index 40d84c43d8f4..6384e5b9a347 100644 --- a/drivers/cpufreq/exynos4210-cpufreq.c +++ b/drivers/cpufreq/exynos4210-cpufreq.c | |||
@@ -29,12 +29,12 @@ static unsigned int exynos4210_volt_table[] = { | |||
29 | }; | 29 | }; |
30 | 30 | ||
31 | static struct cpufreq_frequency_table exynos4210_freq_table[] = { | 31 | static struct cpufreq_frequency_table exynos4210_freq_table[] = { |
32 | {L0, 1200 * 1000}, | 32 | {0, L0, 1200 * 1000}, |
33 | {L1, 1000 * 1000}, | 33 | {0, L1, 1000 * 1000}, |
34 | {L2, 800 * 1000}, | 34 | {0, L2, 800 * 1000}, |
35 | {L3, 500 * 1000}, | 35 | {0, L3, 500 * 1000}, |
36 | {L4, 200 * 1000}, | 36 | {0, L4, 200 * 1000}, |
37 | {0, CPUFREQ_TABLE_END}, | 37 | {0, 0, CPUFREQ_TABLE_END}, |
38 | }; | 38 | }; |
39 | 39 | ||
40 | static struct apll_freq apll_freq_4210[] = { | 40 | static struct apll_freq apll_freq_4210[] = { |
diff --git a/drivers/cpufreq/exynos4x12-cpufreq.c b/drivers/cpufreq/exynos4x12-cpufreq.c index 7c11ace3b3fc..466c76ad335b 100644 --- a/drivers/cpufreq/exynos4x12-cpufreq.c +++ b/drivers/cpufreq/exynos4x12-cpufreq.c | |||
@@ -30,21 +30,21 @@ static unsigned int exynos4x12_volt_table[] = { | |||
30 | }; | 30 | }; |
31 | 31 | ||
32 | static struct cpufreq_frequency_table exynos4x12_freq_table[] = { | 32 | static struct cpufreq_frequency_table exynos4x12_freq_table[] = { |
33 | {CPUFREQ_BOOST_FREQ, 1500 * 1000}, | 33 | {CPUFREQ_BOOST_FREQ, L0, 1500 * 1000}, |
34 | {L1, 1400 * 1000}, | 34 | {0, L1, 1400 * 1000}, |
35 | {L2, 1300 * 1000}, | 35 | {0, L2, 1300 * 1000}, |
36 | {L3, 1200 * 1000}, | 36 | {0, L3, 1200 * 1000}, |
37 | {L4, 1100 * 1000}, | 37 | {0, L4, 1100 * 1000}, |
38 | {L5, 1000 * 1000}, | 38 | {0, L5, 1000 * 1000}, |
39 | {L6, 900 * 1000}, | 39 | {0, L6, 900 * 1000}, |
40 | {L7, 800 * 1000}, | 40 | {0, L7, 800 * 1000}, |
41 | {L8, 700 * 1000}, | 41 | {0, L8, 700 * 1000}, |
42 | {L9, 600 * 1000}, | 42 | {0, L9, 600 * 1000}, |
43 | {L10, 500 * 1000}, | 43 | {0, L10, 500 * 1000}, |
44 | {L11, 400 * 1000}, | 44 | {0, L11, 400 * 1000}, |
45 | {L12, 300 * 1000}, | 45 | {0, L12, 300 * 1000}, |
46 | {L13, 200 * 1000}, | 46 | {0, L13, 200 * 1000}, |
47 | {0, CPUFREQ_TABLE_END}, | 47 | {0, 0, CPUFREQ_TABLE_END}, |
48 | }; | 48 | }; |
49 | 49 | ||
50 | static struct apll_freq *apll_freq_4x12; | 50 | static struct apll_freq *apll_freq_4x12; |
diff --git a/drivers/cpufreq/exynos5250-cpufreq.c b/drivers/cpufreq/exynos5250-cpufreq.c index 5f90b82a4082..363a0b3fe1b1 100644 --- a/drivers/cpufreq/exynos5250-cpufreq.c +++ b/drivers/cpufreq/exynos5250-cpufreq.c | |||
@@ -34,23 +34,23 @@ static unsigned int exynos5250_volt_table[] = { | |||
34 | }; | 34 | }; |
35 | 35 | ||
36 | static struct cpufreq_frequency_table exynos5250_freq_table[] = { | 36 | static struct cpufreq_frequency_table exynos5250_freq_table[] = { |
37 | {L0, 1700 * 1000}, | 37 | {0, L0, 1700 * 1000}, |
38 | {L1, 1600 * 1000}, | 38 | {0, L1, 1600 * 1000}, |
39 | {L2, 1500 * 1000}, | 39 | {0, L2, 1500 * 1000}, |
40 | {L3, 1400 * 1000}, | 40 | {0, L3, 1400 * 1000}, |
41 | {L4, 1300 * 1000}, | 41 | {0, L4, 1300 * 1000}, |
42 | {L5, 1200 * 1000}, | 42 | {0, L5, 1200 * 1000}, |
43 | {L6, 1100 * 1000}, | 43 | {0, L6, 1100 * 1000}, |
44 | {L7, 1000 * 1000}, | 44 | {0, L7, 1000 * 1000}, |
45 | {L8, 900 * 1000}, | 45 | {0, L8, 900 * 1000}, |
46 | {L9, 800 * 1000}, | 46 | {0, L9, 800 * 1000}, |
47 | {L10, 700 * 1000}, | 47 | {0, L10, 700 * 1000}, |
48 | {L11, 600 * 1000}, | 48 | {0, L11, 600 * 1000}, |
49 | {L12, 500 * 1000}, | 49 | {0, L12, 500 * 1000}, |
50 | {L13, 400 * 1000}, | 50 | {0, L13, 400 * 1000}, |
51 | {L14, 300 * 1000}, | 51 | {0, L14, 300 * 1000}, |
52 | {L15, 200 * 1000}, | 52 | {0, L15, 200 * 1000}, |
53 | {0, CPUFREQ_TABLE_END}, | 53 | {0, 0, CPUFREQ_TABLE_END}, |
54 | }; | 54 | }; |
55 | 55 | ||
56 | static struct apll_freq apll_freq_5250[] = { | 56 | static struct apll_freq apll_freq_5250[] = { |
diff --git a/drivers/cpufreq/freq_table.c b/drivers/cpufreq/freq_table.c index 53ff3c209606..08e7bbcf6d73 100644 --- a/drivers/cpufreq/freq_table.c +++ b/drivers/cpufreq/freq_table.c | |||
@@ -33,7 +33,7 @@ int cpufreq_frequency_table_cpuinfo(struct cpufreq_policy *policy, | |||
33 | continue; | 33 | continue; |
34 | } | 34 | } |
35 | if (!cpufreq_boost_enabled() | 35 | if (!cpufreq_boost_enabled() |
36 | && table[i].driver_data == CPUFREQ_BOOST_FREQ) | 36 | && (table[i].flags & CPUFREQ_BOOST_FREQ)) |
37 | continue; | 37 | continue; |
38 | 38 | ||
39 | pr_debug("table entry %u: %u kHz\n", i, freq); | 39 | pr_debug("table entry %u: %u kHz\n", i, freq); |
@@ -229,7 +229,7 @@ static ssize_t show_available_freqs(struct cpufreq_policy *policy, char *buf, | |||
229 | * show_boost = false and driver_data != BOOST freq | 229 | * show_boost = false and driver_data != BOOST freq |
230 | * display NON BOOST freqs | 230 | * display NON BOOST freqs |
231 | */ | 231 | */ |
232 | if (show_boost ^ (table[i].driver_data == CPUFREQ_BOOST_FREQ)) | 232 | if (show_boost ^ (table[i].flags & CPUFREQ_BOOST_FREQ)) |
233 | continue; | 233 | continue; |
234 | 234 | ||
235 | count += sprintf(&buf[count], "%d ", table[i].frequency); | 235 | count += sprintf(&buf[count], "%d ", table[i].frequency); |
diff --git a/drivers/cpufreq/kirkwood-cpufreq.c b/drivers/cpufreq/kirkwood-cpufreq.c index 3d114bc5a97a..37a480680cd0 100644 --- a/drivers/cpufreq/kirkwood-cpufreq.c +++ b/drivers/cpufreq/kirkwood-cpufreq.c | |||
@@ -43,9 +43,9 @@ static struct priv | |||
43 | * table. | 43 | * table. |
44 | */ | 44 | */ |
45 | static struct cpufreq_frequency_table kirkwood_freq_table[] = { | 45 | static struct cpufreq_frequency_table kirkwood_freq_table[] = { |
46 | {STATE_CPU_FREQ, 0}, /* CPU uses cpuclk */ | 46 | {0, STATE_CPU_FREQ, 0}, /* CPU uses cpuclk */ |
47 | {STATE_DDR_FREQ, 0}, /* CPU uses ddrclk */ | 47 | {0, STATE_DDR_FREQ, 0}, /* CPU uses ddrclk */ |
48 | {0, CPUFREQ_TABLE_END}, | 48 | {0, 0, CPUFREQ_TABLE_END}, |
49 | }; | 49 | }; |
50 | 50 | ||
51 | static unsigned int kirkwood_cpufreq_get_cpu_frequency(unsigned int cpu) | 51 | static unsigned int kirkwood_cpufreq_get_cpu_frequency(unsigned int cpu) |
diff --git a/drivers/cpufreq/maple-cpufreq.c b/drivers/cpufreq/maple-cpufreq.c index c4dfa42a75ac..cc3408fc073f 100644 --- a/drivers/cpufreq/maple-cpufreq.c +++ b/drivers/cpufreq/maple-cpufreq.c | |||
@@ -59,9 +59,9 @@ | |||
59 | #define CPUFREQ_LOW 1 | 59 | #define CPUFREQ_LOW 1 |
60 | 60 | ||
61 | static struct cpufreq_frequency_table maple_cpu_freqs[] = { | 61 | static struct cpufreq_frequency_table maple_cpu_freqs[] = { |
62 | {CPUFREQ_HIGH, 0}, | 62 | {0, CPUFREQ_HIGH, 0}, |
63 | {CPUFREQ_LOW, 0}, | 63 | {0, CPUFREQ_LOW, 0}, |
64 | {0, CPUFREQ_TABLE_END}, | 64 | {0, 0, CPUFREQ_TABLE_END}, |
65 | }; | 65 | }; |
66 | 66 | ||
67 | /* Power mode data is an array of the 32 bits PCR values to use for | 67 | /* Power mode data is an array of the 32 bits PCR values to use for |
diff --git a/drivers/cpufreq/p4-clockmod.c b/drivers/cpufreq/p4-clockmod.c index 74f593e70e19..529cfd92158f 100644 --- a/drivers/cpufreq/p4-clockmod.c +++ b/drivers/cpufreq/p4-clockmod.c | |||
@@ -92,16 +92,16 @@ static int cpufreq_p4_setdc(unsigned int cpu, unsigned int newstate) | |||
92 | 92 | ||
93 | 93 | ||
94 | static struct cpufreq_frequency_table p4clockmod_table[] = { | 94 | static struct cpufreq_frequency_table p4clockmod_table[] = { |
95 | {DC_RESV, CPUFREQ_ENTRY_INVALID}, | 95 | {0, DC_RESV, CPUFREQ_ENTRY_INVALID}, |
96 | {DC_DFLT, 0}, | 96 | {0, DC_DFLT, 0}, |
97 | {DC_25PT, 0}, | 97 | {0, DC_25PT, 0}, |
98 | {DC_38PT, 0}, | 98 | {0, DC_38PT, 0}, |
99 | {DC_50PT, 0}, | 99 | {0, DC_50PT, 0}, |
100 | {DC_64PT, 0}, | 100 | {0, DC_64PT, 0}, |
101 | {DC_75PT, 0}, | 101 | {0, DC_75PT, 0}, |
102 | {DC_88PT, 0}, | 102 | {0, DC_88PT, 0}, |
103 | {DC_DISABLE, 0}, | 103 | {0, DC_DISABLE, 0}, |
104 | {DC_RESV, CPUFREQ_TABLE_END}, | 104 | {0, DC_RESV, CPUFREQ_TABLE_END}, |
105 | }; | 105 | }; |
106 | 106 | ||
107 | 107 | ||
diff --git a/drivers/cpufreq/pasemi-cpufreq.c b/drivers/cpufreq/pasemi-cpufreq.c index 6a2b7d3e85a7..84c84b5f0f3a 100644 --- a/drivers/cpufreq/pasemi-cpufreq.c +++ b/drivers/cpufreq/pasemi-cpufreq.c | |||
@@ -60,12 +60,12 @@ static int current_astate; | |||
60 | 60 | ||
61 | /* We support 5(A0-A4) power states excluding turbo(A5-A6) modes */ | 61 | /* We support 5(A0-A4) power states excluding turbo(A5-A6) modes */ |
62 | static struct cpufreq_frequency_table pas_freqs[] = { | 62 | static struct cpufreq_frequency_table pas_freqs[] = { |
63 | {0, 0}, | 63 | {0, 0, 0}, |
64 | {1, 0}, | 64 | {0, 1, 0}, |
65 | {2, 0}, | 65 | {0, 2, 0}, |
66 | {3, 0}, | 66 | {0, 3, 0}, |
67 | {4, 0}, | 67 | {0, 4, 0}, |
68 | {0, CPUFREQ_TABLE_END}, | 68 | {0, 0, CPUFREQ_TABLE_END}, |
69 | }; | 69 | }; |
70 | 70 | ||
71 | /* | 71 | /* |
diff --git a/drivers/cpufreq/pmac32-cpufreq.c b/drivers/cpufreq/pmac32-cpufreq.c index cf55d202f332..7615180d7ee3 100644 --- a/drivers/cpufreq/pmac32-cpufreq.c +++ b/drivers/cpufreq/pmac32-cpufreq.c | |||
@@ -81,9 +81,9 @@ static int is_pmu_based; | |||
81 | #define CPUFREQ_LOW 1 | 81 | #define CPUFREQ_LOW 1 |
82 | 82 | ||
83 | static struct cpufreq_frequency_table pmac_cpu_freqs[] = { | 83 | static struct cpufreq_frequency_table pmac_cpu_freqs[] = { |
84 | {CPUFREQ_HIGH, 0}, | 84 | {0, CPUFREQ_HIGH, 0}, |
85 | {CPUFREQ_LOW, 0}, | 85 | {0, CPUFREQ_LOW, 0}, |
86 | {0, CPUFREQ_TABLE_END}, | 86 | {0, 0, CPUFREQ_TABLE_END}, |
87 | }; | 87 | }; |
88 | 88 | ||
89 | static inline void local_delay(unsigned long ms) | 89 | static inline void local_delay(unsigned long ms) |
diff --git a/drivers/cpufreq/pmac64-cpufreq.c b/drivers/cpufreq/pmac64-cpufreq.c index 6a338f8c3860..8bc422977b5b 100644 --- a/drivers/cpufreq/pmac64-cpufreq.c +++ b/drivers/cpufreq/pmac64-cpufreq.c | |||
@@ -65,9 +65,9 @@ | |||
65 | #define CPUFREQ_LOW 1 | 65 | #define CPUFREQ_LOW 1 |
66 | 66 | ||
67 | static struct cpufreq_frequency_table g5_cpu_freqs[] = { | 67 | static struct cpufreq_frequency_table g5_cpu_freqs[] = { |
68 | {CPUFREQ_HIGH, 0}, | 68 | {0, CPUFREQ_HIGH, 0}, |
69 | {CPUFREQ_LOW, 0}, | 69 | {0, CPUFREQ_LOW, 0}, |
70 | {0, CPUFREQ_TABLE_END}, | 70 | {0, 0, CPUFREQ_TABLE_END}, |
71 | }; | 71 | }; |
72 | 72 | ||
73 | /* Power mode data is an array of the 32 bits PCR values to use for | 73 | /* Power mode data is an array of the 32 bits PCR values to use for |
diff --git a/drivers/cpufreq/powernow-k6.c b/drivers/cpufreq/powernow-k6.c index 62c6f2e5afce..49f120e1bc7b 100644 --- a/drivers/cpufreq/powernow-k6.c +++ b/drivers/cpufreq/powernow-k6.c | |||
@@ -37,15 +37,15 @@ MODULE_PARM_DESC(bus_frequency, "Bus frequency in kHz"); | |||
37 | 37 | ||
38 | /* Clock ratio multiplied by 10 - see table 27 in AMD#23446 */ | 38 | /* Clock ratio multiplied by 10 - see table 27 in AMD#23446 */ |
39 | static struct cpufreq_frequency_table clock_ratio[] = { | 39 | static struct cpufreq_frequency_table clock_ratio[] = { |
40 | {60, /* 110 -> 6.0x */ 0}, | 40 | {0, 60, /* 110 -> 6.0x */ 0}, |
41 | {55, /* 011 -> 5.5x */ 0}, | 41 | {0, 55, /* 011 -> 5.5x */ 0}, |
42 | {50, /* 001 -> 5.0x */ 0}, | 42 | {0, 50, /* 001 -> 5.0x */ 0}, |
43 | {45, /* 000 -> 4.5x */ 0}, | 43 | {0, 45, /* 000 -> 4.5x */ 0}, |
44 | {40, /* 010 -> 4.0x */ 0}, | 44 | {0, 40, /* 010 -> 4.0x */ 0}, |
45 | {35, /* 111 -> 3.5x */ 0}, | 45 | {0, 35, /* 111 -> 3.5x */ 0}, |
46 | {30, /* 101 -> 3.0x */ 0}, | 46 | {0, 30, /* 101 -> 3.0x */ 0}, |
47 | {20, /* 100 -> 2.0x */ 0}, | 47 | {0, 20, /* 100 -> 2.0x */ 0}, |
48 | {0, CPUFREQ_TABLE_END} | 48 | {0, 0, CPUFREQ_TABLE_END} |
49 | }; | 49 | }; |
50 | 50 | ||
51 | static const u8 index_to_register[8] = { 6, 3, 1, 0, 2, 7, 5, 4 }; | 51 | static const u8 index_to_register[8] = { 6, 3, 1, 0, 2, 7, 5, 4 }; |
diff --git a/drivers/cpufreq/ppc_cbe_cpufreq.c b/drivers/cpufreq/ppc_cbe_cpufreq.c index af7b1cabd1e7..5be8a48dba74 100644 --- a/drivers/cpufreq/ppc_cbe_cpufreq.c +++ b/drivers/cpufreq/ppc_cbe_cpufreq.c | |||
@@ -32,15 +32,15 @@ | |||
32 | 32 | ||
33 | /* the CBE supports an 8 step frequency scaling */ | 33 | /* the CBE supports an 8 step frequency scaling */ |
34 | static struct cpufreq_frequency_table cbe_freqs[] = { | 34 | static struct cpufreq_frequency_table cbe_freqs[] = { |
35 | {1, 0}, | 35 | {0, 1, 0}, |
36 | {2, 0}, | 36 | {0, 2, 0}, |
37 | {3, 0}, | 37 | {0, 3, 0}, |
38 | {4, 0}, | 38 | {0, 4, 0}, |
39 | {5, 0}, | 39 | {0, 5, 0}, |
40 | {6, 0}, | 40 | {0, 6, 0}, |
41 | {8, 0}, | 41 | {0, 8, 0}, |
42 | {10, 0}, | 42 | {0, 10, 0}, |
43 | {0, CPUFREQ_TABLE_END}, | 43 | {0, 0, CPUFREQ_TABLE_END}, |
44 | }; | 44 | }; |
45 | 45 | ||
46 | /* | 46 | /* |
diff --git a/drivers/cpufreq/s3c2416-cpufreq.c b/drivers/cpufreq/s3c2416-cpufreq.c index 826b8be23099..4626f90559b5 100644 --- a/drivers/cpufreq/s3c2416-cpufreq.c +++ b/drivers/cpufreq/s3c2416-cpufreq.c | |||
@@ -72,19 +72,19 @@ static struct s3c2416_dvfs s3c2416_dvfs_table[] = { | |||
72 | #endif | 72 | #endif |
73 | 73 | ||
74 | static struct cpufreq_frequency_table s3c2416_freq_table[] = { | 74 | static struct cpufreq_frequency_table s3c2416_freq_table[] = { |
75 | { SOURCE_HCLK, FREQ_DVS }, | 75 | { 0, SOURCE_HCLK, FREQ_DVS }, |
76 | { SOURCE_ARMDIV, 133333 }, | 76 | { 0, SOURCE_ARMDIV, 133333 }, |
77 | { SOURCE_ARMDIV, 266666 }, | 77 | { 0, SOURCE_ARMDIV, 266666 }, |
78 | { SOURCE_ARMDIV, 400000 }, | 78 | { 0, SOURCE_ARMDIV, 400000 }, |
79 | { 0, CPUFREQ_TABLE_END }, | 79 | { 0, 0, CPUFREQ_TABLE_END }, |
80 | }; | 80 | }; |
81 | 81 | ||
82 | static struct cpufreq_frequency_table s3c2450_freq_table[] = { | 82 | static struct cpufreq_frequency_table s3c2450_freq_table[] = { |
83 | { SOURCE_HCLK, FREQ_DVS }, | 83 | { 0, SOURCE_HCLK, FREQ_DVS }, |
84 | { SOURCE_ARMDIV, 133500 }, | 84 | { 0, SOURCE_ARMDIV, 133500 }, |
85 | { SOURCE_ARMDIV, 267000 }, | 85 | { 0, SOURCE_ARMDIV, 267000 }, |
86 | { SOURCE_ARMDIV, 534000 }, | 86 | { 0, SOURCE_ARMDIV, 534000 }, |
87 | { 0, CPUFREQ_TABLE_END }, | 87 | { 0, 0, CPUFREQ_TABLE_END }, |
88 | }; | 88 | }; |
89 | 89 | ||
90 | static unsigned int s3c2416_cpufreq_get_speed(unsigned int cpu) | 90 | static unsigned int s3c2416_cpufreq_get_speed(unsigned int cpu) |
diff --git a/drivers/cpufreq/s3c64xx-cpufreq.c b/drivers/cpufreq/s3c64xx-cpufreq.c index c4226de079ab..ff7d3ecb85f0 100644 --- a/drivers/cpufreq/s3c64xx-cpufreq.c +++ b/drivers/cpufreq/s3c64xx-cpufreq.c | |||
@@ -37,19 +37,19 @@ static struct s3c64xx_dvfs s3c64xx_dvfs_table[] = { | |||
37 | }; | 37 | }; |
38 | 38 | ||
39 | static struct cpufreq_frequency_table s3c64xx_freq_table[] = { | 39 | static struct cpufreq_frequency_table s3c64xx_freq_table[] = { |
40 | { 0, 66000 }, | 40 | { 0, 0, 66000 }, |
41 | { 0, 100000 }, | 41 | { 0, 0, 100000 }, |
42 | { 0, 133000 }, | 42 | { 0, 0, 133000 }, |
43 | { 1, 200000 }, | 43 | { 0, 1, 200000 }, |
44 | { 1, 222000 }, | 44 | { 0, 1, 222000 }, |
45 | { 1, 266000 }, | 45 | { 0, 1, 266000 }, |
46 | { 2, 333000 }, | 46 | { 0, 2, 333000 }, |
47 | { 2, 400000 }, | 47 | { 0, 2, 400000 }, |
48 | { 2, 532000 }, | 48 | { 0, 2, 532000 }, |
49 | { 2, 533000 }, | 49 | { 0, 2, 533000 }, |
50 | { 3, 667000 }, | 50 | { 0, 3, 667000 }, |
51 | { 4, 800000 }, | 51 | { 0, 4, 800000 }, |
52 | { 0, CPUFREQ_TABLE_END }, | 52 | { 0, 0, CPUFREQ_TABLE_END }, |
53 | }; | 53 | }; |
54 | #endif | 54 | #endif |
55 | 55 | ||
diff --git a/drivers/cpufreq/s5pv210-cpufreq.c b/drivers/cpufreq/s5pv210-cpufreq.c index 72421534fff5..ab2c1a40d437 100644 --- a/drivers/cpufreq/s5pv210-cpufreq.c +++ b/drivers/cpufreq/s5pv210-cpufreq.c | |||
@@ -64,12 +64,12 @@ enum s5pv210_dmc_port { | |||
64 | }; | 64 | }; |
65 | 65 | ||
66 | static struct cpufreq_frequency_table s5pv210_freq_table[] = { | 66 | static struct cpufreq_frequency_table s5pv210_freq_table[] = { |
67 | {L0, 1000*1000}, | 67 | {0, L0, 1000*1000}, |
68 | {L1, 800*1000}, | 68 | {0, L1, 800*1000}, |
69 | {L2, 400*1000}, | 69 | {0, L2, 400*1000}, |
70 | {L3, 200*1000}, | 70 | {0, L3, 200*1000}, |
71 | {L4, 100*1000}, | 71 | {0, L4, 100*1000}, |
72 | {0, CPUFREQ_TABLE_END}, | 72 | {0, 0, CPUFREQ_TABLE_END}, |
73 | }; | 73 | }; |
74 | 74 | ||
75 | static struct regulator *arm_regulator; | 75 | static struct regulator *arm_regulator; |
diff --git a/drivers/cpufreq/sc520_freq.c b/drivers/cpufreq/sc520_freq.c index 69371bf0886d..ac84e4818014 100644 --- a/drivers/cpufreq/sc520_freq.c +++ b/drivers/cpufreq/sc520_freq.c | |||
@@ -33,9 +33,9 @@ static __u8 __iomem *cpuctl; | |||
33 | #define PFX "sc520_freq: " | 33 | #define PFX "sc520_freq: " |
34 | 34 | ||
35 | static struct cpufreq_frequency_table sc520_freq_table[] = { | 35 | static struct cpufreq_frequency_table sc520_freq_table[] = { |
36 | {0x01, 100000}, | 36 | {0, 0x01, 100000}, |
37 | {0x02, 133000}, | 37 | {0, 0x02, 133000}, |
38 | {0, CPUFREQ_TABLE_END}, | 38 | {0, 0, CPUFREQ_TABLE_END}, |
39 | }; | 39 | }; |
40 | 40 | ||
41 | static unsigned int sc520_freq_get_cpu_frequency(unsigned int cpu) | 41 | static unsigned int sc520_freq_get_cpu_frequency(unsigned int cpu) |
diff --git a/drivers/cpufreq/speedstep-ich.c b/drivers/cpufreq/speedstep-ich.c index 394ac159312a..1a07b5904ed5 100644 --- a/drivers/cpufreq/speedstep-ich.c +++ b/drivers/cpufreq/speedstep-ich.c | |||
@@ -49,9 +49,9 @@ static u32 pmbase; | |||
49 | * are in kHz for the time being. | 49 | * are in kHz for the time being. |
50 | */ | 50 | */ |
51 | static struct cpufreq_frequency_table speedstep_freqs[] = { | 51 | static struct cpufreq_frequency_table speedstep_freqs[] = { |
52 | {SPEEDSTEP_HIGH, 0}, | 52 | {0, SPEEDSTEP_HIGH, 0}, |
53 | {SPEEDSTEP_LOW, 0}, | 53 | {0, SPEEDSTEP_LOW, 0}, |
54 | {0, CPUFREQ_TABLE_END}, | 54 | {0, 0, CPUFREQ_TABLE_END}, |
55 | }; | 55 | }; |
56 | 56 | ||
57 | 57 | ||
diff --git a/drivers/cpufreq/speedstep-smi.c b/drivers/cpufreq/speedstep-smi.c index db5d274dc13a..8635eec96da5 100644 --- a/drivers/cpufreq/speedstep-smi.c +++ b/drivers/cpufreq/speedstep-smi.c | |||
@@ -42,9 +42,9 @@ static enum speedstep_processor speedstep_processor; | |||
42 | * are in kHz for the time being. | 42 | * are in kHz for the time being. |
43 | */ | 43 | */ |
44 | static struct cpufreq_frequency_table speedstep_freqs[] = { | 44 | static struct cpufreq_frequency_table speedstep_freqs[] = { |
45 | {SPEEDSTEP_HIGH, 0}, | 45 | {0, SPEEDSTEP_HIGH, 0}, |
46 | {SPEEDSTEP_LOW, 0}, | 46 | {0, SPEEDSTEP_LOW, 0}, |
47 | {0, CPUFREQ_TABLE_END}, | 47 | {0, 0, CPUFREQ_TABLE_END}, |
48 | }; | 48 | }; |
49 | 49 | ||
50 | #define GET_SPEEDSTEP_OWNER 0 | 50 | #define GET_SPEEDSTEP_OWNER 0 |
diff --git a/include/linux/cpufreq.h b/include/linux/cpufreq.h index c48e595f623e..5ae5100c1f24 100644 --- a/include/linux/cpufreq.h +++ b/include/linux/cpufreq.h | |||
@@ -455,11 +455,14 @@ extern struct cpufreq_governor cpufreq_gov_conservative; | |||
455 | * FREQUENCY TABLE HELPERS * | 455 | * FREQUENCY TABLE HELPERS * |
456 | *********************************************************************/ | 456 | *********************************************************************/ |
457 | 457 | ||
458 | #define CPUFREQ_ENTRY_INVALID ~0 | 458 | /* Special Values of .frequency field */ |
459 | #define CPUFREQ_TABLE_END ~1 | 459 | #define CPUFREQ_ENTRY_INVALID ~0 |
460 | #define CPUFREQ_BOOST_FREQ ~2 | 460 | #define CPUFREQ_TABLE_END ~1 |
461 | /* Special Values of .flags field */ | ||
462 | #define CPUFREQ_BOOST_FREQ (1 << 0) | ||
461 | 463 | ||
462 | struct cpufreq_frequency_table { | 464 | struct cpufreq_frequency_table { |
465 | unsigned int flags; | ||
463 | unsigned int driver_data; /* driver specific data, not used by core */ | 466 | unsigned int driver_data; /* driver specific data, not used by core */ |
464 | unsigned int frequency; /* kHz - doesn't need to be in ascending | 467 | unsigned int frequency; /* kHz - doesn't need to be in ascending |
465 | * order */ | 468 | * order */ |