Re: [PATCH 1/2] cpufreq: ondemand: allow custom od_ops to be registered

From: Viresh Kumar
Date: Thu Mar 28 2013 - 03:36:49 EST


On 28 March 2013 04:07, Jacob Shin <jacob.shin@xxxxxxx> wrote:
> diff --git a/drivers/cpufreq/cpufreq_ondemand.c b/drivers/cpufreq/cpufreq_ondemand.c
> +void od_register_ops(struct od_ops *ops)
> +{
> + if (ops->powersave_bias_init_cpu)
> + od_ops.powersave_bias_init_cpu = ops->powersave_bias_init_cpu;
> + if (ops->powersave_bias_target)
> + od_ops.powersave_bias_target = ops->powersave_bias_target;
> + if (ops->freq_increase)
> + od_ops.freq_increase = ops->freq_increase;
> +}

We don't need to support all the three. First and last ones strictly belong
to ondemand governor.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/