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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 cpufreq" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux Kernel Devel]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Forum]     [Linux SCSI]

  Powered by Linux