Lines Matching +full:c +full:- +full:45
1 // SPDX-License-Identifier: GPL-2.0-only
4 * (C) 2000-2003 Dave Jones, Arjan van de Ven, Janne Pänkälä,
33 MODULE_PARM_DESC(max_multiplier, "Maximum multiplier (allowed values: 20 30 35 40 45 50 55 60)");
38 /* Clock ratio multiplied by 10 - see table 27 in AMD#23446 */
40 {0, 60, /* 110 -> 6.0x */ 0},
41 {0, 55, /* 011 -> 5.5x */ 0},
42 {0, 50, /* 001 -> 5.0x */ 0},
43 {0, 45, /* 000 -> 4.5x */ 0},
44 {0, 40, /* 010 -> 4.0x */ 0},
45 {0, 35, /* 111 -> 3.5x */ 0},
46 {0, 30, /* 101 -> 3.0x */ 0},
47 {0, 20, /* 100 -> 2.0x */ 0},
60 { 450000, 45 }, // 100 * 4.5
63 { 506250, 45 }, // 112.5 * 4.5
78 * powernow_k6_get_cpu_multiplier - returns the current FSB multiplier
81 * speed is frequency of the Front-Side Bus multiplied with this value.
134 * powernow_k6_target - set the PowerNow! multiplier
145 return -EINVAL; in powernow_k6_target()
159 if (policy->cpu != 0) in powernow_k6_cpu_init()
160 return -ENODEV; in powernow_k6_cpu_init()
165 if (khz >= usual_frequency_table[i].freq - FREQ_RANGE && in powernow_k6_cpu_init()
174 if (pos->driver_data == param_max_multiplier) { in powernow_k6_cpu_init()
178 pr_err("invalid max_multiplier parameter, valid parameters 20, 30, 35, 40, 45, 50, 55, 60\n"); in powernow_k6_cpu_init()
179 return -EINVAL; in powernow_k6_cpu_init()
186 return -EOPNOTSUPP; in powernow_k6_cpu_init()
197 pr_err("invalid bus_frequency parameter, allowed range 50000 - 150000 kHz\n"); in powernow_k6_cpu_init()
198 return -EINVAL; in powernow_k6_cpu_init()
207 f = pos->driver_data; in powernow_k6_cpu_init()
209 pos->frequency = CPUFREQ_ENTRY_INVALID; in powernow_k6_cpu_init()
211 pos->frequency = busfreq * f; in powernow_k6_cpu_init()
215 policy->cpuinfo.transition_latency = 500000; in powernow_k6_cpu_init()
216 policy->freq_table = clock_ratio; in powernow_k6_cpu_init()
230 freqs.old = policy->cur; in powernow_k6_cpu_exit()
255 .name = "powernow-k6",
267 * powernow_k6_init - initializes the k6 PowerNow! CPUFreq driver
269 * Initializes the K6 PowerNow! support. Returns -ENODEV on unsupported
270 * devices, -EINVAL or -ENOMEM on problems during initiatization, and zero
276 return -ENODEV; in powernow_k6_init()
280 return -EIO; in powernow_k6_init()
285 return -EINVAL; in powernow_k6_init()
293 * powernow_k6_exit - unregisters AMD K6-2+/3+ PowerNow! support
295 * Unregisters AMD K6-2+ / K6-3+ PowerNow! support.
306 MODULE_DESCRIPTION("PowerNow! driver for AMD K6-2+ / K6-3+ processors.");