From: James Cosin Date: Mon, 20 Aug 2012 03:55:36 +0000 (+0800) Subject: Blackfin: cpufreq: fix dpm_state_table X-Git-Tag: v3.7-rc1~76^2~6 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=810f1512dc8a1f64c22229c3def85fc398b6a24f;p=pandora-kernel.git Blackfin: cpufreq: fix dpm_state_table This patch fixes an assumption that cclk's initial divisor will always be 1 (or 0 in the register). TSCALE is always initialized on startup with a value of 4 regardless of the inital cclk divisor; so, we can't make the assumption without making lots of other assumptions. The TPERIOD value is set with a value of the current cclk (value / (HZ * TSCALE)) - 1; so, we need to adjust based on this initial frequency and not use cclk's initial divisor for adjusting the tscale. Signed-off-by: Steven Miao Signed-off-by: Bob Liu --- Reading git-diff-tree failed