/* This function returns a performance (4 - 128) out of a frequency within the boundaries (min/max).  */
static u32 get_performance(struct cpufreq_policy *policy, unsigned int target_freq)
/* This function returns a performance (4 - 128) out of a frequency within the boundaries (min/max).  */
static u32 get_performance(struct cpufreq_policy *policy, unsigned int target_freq)
{
	unsigned int perf = 0;
	if(target_freq < policy->min)
		target_freq = (u32)policy->min;
	if(target_freq > policy->max)
		target_freq = (u32)policy->max;
	perf = (target_freq*0x80)/policy->cpuinfo.max_freq;
	if (perf < 4)
		perf = 4;
	return perf;
}