freqs.old = calc_speed(longhaul_get_cpu_mult());
freqs.new = speed;
---- - - cpufreq_freq_transition_begin(policy, &freqs);
- cpufreq_notify_transition(policy, &freqs, CPUFREQ_PRECHANGE);
---- ---
pr_debug("Setting to FSB:%dMHz Mult:%d.%dx (%s)\n",
fsb, mult/10, mult%10, print_speed(speed/1000));
retry_loop:
goto retry_loop;
}
}
---- --- /* Report true CPU frequency */
---- - - cpufreq_freq_transition_end(policy, &freqs, 0);
- cpufreq_notify_transition(policy, &freqs, CPUFREQ_POSTCHANGE);
---- --- if (!bm_timeout)
++++ +++ if (!bm_timeout) {
printk(KERN_INFO PFX "Warning: Timeout while waiting for "
"idle PCI bus.\n");
++++ +++ return -EBUSY;
++++ +++ }
++++ +++
++++ +++ return 0;
}
/*
return -EINVAL;
}
---- --- freqs.old = busfreq * powernow_k6_get_cpu_multiplier();
---- --- freqs.new = busfreq * clock_ratio[best_i].driver_data;
---- ---
---- - - cpufreq_freq_transition_begin(policy, &freqs);
- cpufreq_notify_transition(policy, &freqs, CPUFREQ_PRECHANGE);
---- ---
powernow_k6_set_cpu_multiplier(best_i);
---- - - cpufreq_freq_transition_end(policy, &freqs, 0);
- cpufreq_notify_transition(policy, &freqs, CPUFREQ_POSTCHANGE);
---- ---
return 0;
}
static int powernow_k6_cpu_exit(struct cpufreq_policy *policy)
{
unsigned int i;
---- --- for (i = 0; i < 8; i++) {
---- --- if (i == max_multiplier)
++++ +++
++++ +++ for (i = 0; (clock_ratio[i].frequency != CPUFREQ_TABLE_END); i++) {
++++ +++ if (clock_ratio[i].driver_data == max_multiplier) {
++++ +++ struct cpufreq_freqs freqs;
++++ +++
++++ +++ freqs.old = policy->cur;
++++ +++ freqs.new = clock_ratio[i].frequency;
++++ +++ freqs.flags = 0;
++++ +++
++++ +++ cpufreq_freq_transition_begin(policy, &freqs);
powernow_k6_target(policy, i);
++++ +++ cpufreq_freq_transition_end(policy, &freqs, 0);
++++ +++ break;
++++ +++ }
}
- cpufreq_frequency_table_put_attr(policy->cpu);
return 0;
}
depends on I2C=y
select MFD_CORE
select REGMAP_I2C
+ select REGMAP_IRQ
select IRQ_DOMAIN
help
---- -- - Say yes here to add support for Maxim Semiconductor MAX14577.
- Say yes here to support for Maxim Semiconductor MAX14577.
---- ---- This is a Micro-USB IC with Charger controls on chip.
++++ ++++ Say yes here to add support for Maxim Semiconductor MAX14577 and
++++ ++++ MAX77836 Micro-USB ICs with battery charger.
This driver provides common support for accessing the device;
additional drivers must be enabled in order to use the functionality
of the device.