},
};
-static struct cpufreq_table_data sc8830t_cpufreq_table_data_es_1300 = {
+static __maybe_unused
+struct cpufreq_table_data sc8830t_cpufreq_table_data_es_1300 = {
.freq_tbl = {
{0, 1300000},
{1, 1200000},
}
unsigned int last_freq = 0;
-static void dump_axi_cpu(unsigned int freq)
+static __maybe_unused void dump_axi_cpu(unsigned int freq)
{
u32 div, axi_freq;
struct cpufreq_frequency_table *table;
int max_freq = cpufreq_max_limit;
int min_freq = cpufreq_min_limit;
- int cur_freq = 0;
- unsigned long irq_flags;
/* delay 30s to enable dvfs&dynamic-hotplug,
* except requirment from termal-cooling device
return -EINVAL;
}
- target_freq = max(1000000, target_freq);
+ target_freq = max(1000000U, target_freq);
target_freq = max((unsigned int)pm_qos_request(PM_QOS_CPU_FREQ_MIN), target_freq);
target_freq = min((unsigned int)pm_qos_request(PM_QOS_CPU_FREQ_MAX), target_freq);
sprd_cpufreq_conf->vddarm_mv =
sc9631l64_cpufreq_table_data_es.vddarm_mv;
#else
- } else if (__raw_readl(AON_APB_CHIP_ID) == 0x96310000) {
+ } else if (__raw_readl((void __iomem __force *)AON_APB_CHIP_ID)
+ == 0x96310000) {
sprd_cpufreq_conf->freq_tbl =
sc9631l64_cpufreq_table_data_es.freq_tbl;
sprd_cpufreq_conf->vddarm_mv =
{
int ret;
int value;
- unsigned long irq_flags;
ret = strict_strtoul(buf,16,(long unsigned int *)&value);
{
int ret;
int value;
- unsigned long irq_flags;
ret = strict_strtoul(buf,16,(long unsigned int *)&value);
{
int ret;
int value;
- unsigned long irq_flags;
ret = strict_strtoul(buf,16,(long unsigned int *)&value);
{
int ret;
int value;
- unsigned long irq_flags;
printk(KERN_ERR"dvfs_status %s\n",buf);
ret = strict_strtoul(buf,16,(long unsigned int *)&value);
NULL,
};
-static struct attribute_group attr_group = {
+static __maybe_unused struct attribute_group attr_group = {
.attrs = g,
};