msm: cpufreq: Initialize CPU frequency to a known value

CPUFreq stats uses the policy->cur to log the statistics of a
frequency switch. If the policy->cur is not a frequency in the
cpufreq frequency table then then freq_table_get_index() in
cpufreq_stats.c returns -1, which is not checked, causing memory
corruption.

CRs-fixed: 271345
Change-Id: Ia6aff224e8a90a6c2bf44a355f7b60c6aaab3b0f
Signed-off-by: Praveen Chidambaram <pchidamb@codeaurora.org>
msm: cpufreq: Fix race condition in cpufreq with suspend

While the CPU is in the process of changing the frequency, it is
posisble that the system can go into suspend. Suspend directly
calls acpuclk_set_rate() to set the frequency, which messes up the
internal PLL information as frequency change already initated by
CPUFreq is in progress. Hold off the suspend process until the
frequency change is complete.

Change-Id: Ief07ccfbe3d402479e39164f4e94e4b958678929
Signed-off-by: Praveen Chidambaram <pchidamb@codeaurora.org>

Conflicts:
	arch/arm/mach-msm/cpufreq.c