sfi-cpufreq.c: fix how the number of cpus is calculated
authorArjan van de Ven <arjan@linux.intel.com>
Fri, 15 Jul 2011 13:39:30 +0000 (14:39 +0100)
committermgross <mark.gross@intel.com>
Wed, 9 Nov 2011 20:37:02 +0000 (12:37 -0800)
commitad27746f2b9656bd15907d3e63544066fb845ffa
treeebb5da856e4ed412e286dcd09b707c13c0aaa21d
parenta86c8f7c9a255c0d1d88c8577ddc7ec52867ea86
sfi-cpufreq.c: fix how the number of cpus is calculated

The driver used "u64" as the size of an SFI table format..
... which actually was an incorrect size.

Fix the code by using a proper sizeof()

with this fix, the right number of cpus gets detected,
and the P state code actually works!

Change-Id: I6e7911bd14eccc54b5449b9568c58d5363872fe8
Signed-off-by: Arjan van de Ven <arjan@linux.intel.com>
Signed-off-by: Alan Cox <alan@linux.intel.com>
drivers/cpufreq/sfi-cpufreq.c