Lines Matching +full:activate +full:- +full:to +full:- +full:activate

3  * (C) 2002 - 2003  Dominik Brodowski <linux@brodo.de>
7 * for chipsets ICH2-M and ICH3-M.
9 * Many thanks to Ducrot Bruno for finding and fixing the last
10 * "missing link" for ICH2-M/ICH3-M support, and to Thomas Winkler
18 * SPEEDSTEP - DEFINITIONS *
28 #include "speedstep-lib.h"
32 * It is necessary to know which chipset is used. As accesses to
34 * static struct pci_dev * pointing to that device.
57 * speedstep_find_register - read the PMBASE address
59 * Returns: -ENODEV if no register could be found
64 return -ENODEV; in speedstep_find_register()
69 printk(KERN_ERR "speedstep-ich: could not find speedstep register\n"); in speedstep_find_register()
70 return -ENODEV; in speedstep_find_register()
75 printk(KERN_ERR "speedstep-ich: could not find speedstep register\n"); in speedstep_find_register()
76 return -ENODEV; in speedstep_find_register()
84 * speedstep_set_state - set the SpeedStep state
87 * Tries to change the SpeedStep state. Can be called from
111 pr_debug("writing 0x%x to pmbase 0x%x + 0x50\n", value, pmbase); in speedstep_set_state()
134 pr_debug("change to %u MHz succeeded\n", in speedstep_set_state()
137 printk(KERN_ERR "cpufreq: change failed - I/O error\n"); in speedstep_set_state()
149 * speedstep_activate - activate SpeedStep control in the chipset
151 * Tries to activate the SpeedStep status and control registers.
152 * Returns -EINVAL on an unsupported chipset, and zero on success.
159 return -EINVAL; in speedstep_activate()
173 * speedstep_detect_chipset - detect the Southbridge which contains SpeedStep logic
175 * Detects ICH2-M, ICH3-M and ICH4-M so far. The pci_dev points to
176 * the LPC bridge / PM module which contains all power-management
177 * functions. Returns the SPEEDSTEP_CHIPSET_-number for the detected
187 return 4; /* 4-M */ in speedstep_detect_chipset()
194 return 3; /* 3-M */ in speedstep_detect_chipset()
214 return 2; /* 2-M */ in speedstep_detect_chipset()
216 if (hostbridge->revision < 5) { in speedstep_detect_chipset()
224 return 2; /* 2-M */ in speedstep_detect_chipset()
241 /* You're supposed to ensure CPU is online. */ in speedstep_get()
250 * speedstep_target - set a new CPUFreq policy
253 * @relation: how that frequency relates to achieved frequency
268 return -EINVAL; in speedstep_target()
270 policy_cpu = cpumask_any_and(policy->cpus, cpu_online_mask); in speedstep_target()
273 freqs.cpu = policy->cpu; in speedstep_target()
275 pr_debug("transiting from %u to %u kHz\n", freqs.old, freqs.new); in speedstep_target()
281 for_each_cpu(i, policy->cpus) { in speedstep_target()
289 for_each_cpu(i, policy->cpus) { in speedstep_target()
299 * speedstep_verify - verifies a new CPUFreq policy
319 get_freqs->ret = in get_freqs_on_cpu()
323 &get_freqs->policy->cpuinfo.transition_latency, in get_freqs_on_cpu()
333 /* only run on CPU to be set, or on its sibling */ in speedstep_cpu_init()
335 cpumask_copy(policy->cpus, cpu_sibling_mask(policy->cpu)); in speedstep_cpu_init()
337 policy_cpu = cpumask_any_and(policy->cpus, cpu_online_mask); in speedstep_cpu_init()
348 return -EIO; in speedstep_cpu_init()
350 pr_debug("currently at %s speed setting - %i MHz\n", in speedstep_cpu_init()
356 policy->cur = speed; in speedstep_cpu_init()
362 cpufreq_frequency_table_get_attr(speedstep_freqs, policy->cpu); in speedstep_cpu_init()
370 cpufreq_frequency_table_put_attr(policy->cpu); in speedstep_cpu_exit()
381 .name = "speedstep-ich",
393 * speedstep_init - initializes the SpeedStep CPUFreq driver
395 * Initializes the SpeedStep support. Returns -ENODEV on unsupported
396 * devices, -EINVAL on problems during initiatization, and zero on
406 return -ENODEV; in speedstep_init()
413 return -ENODEV; in speedstep_init()
416 /* activate speedstep support */ in speedstep_init()
419 return -EINVAL; in speedstep_init()
423 return -ENODEV; in speedstep_init()
430 * speedstep_exit - unregisters SpeedStep support
444 "with ICH-M southbridges.");