cpuidle: denver: access only CPU0 if SMP disabled
When SMP is disabled, only CPU0 is up. But cpuidle_denver_init tries
to create sysfs node for CPU1 too, which is crashing the system.
Added a check to avoid accessing CPU1 when SMP is disabled.
bug
1472125
Change-Id: If8e60c966bbd380ba6423e04f0f03acf357a3146
Signed-off-by: Naveen Kumar S <nkumars@nvidia.com>
Reviewed-on: http://git-master/r/387811
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bibek Basu <bbasu@nvidia.com>
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>