arm64: restore cpu suspend/resume functionality
authorSudeep Holla <sudeep.holla@arm.com>
Fri, 31 Jul 2015 15:41:36 +0000 (16:41 +0100)
committerWill Deacon <will.deacon@arm.com>
Fri, 31 Jul 2015 16:40:52 +0000 (17:40 +0100)
commitb511a6592860f24725f34909392885c4e3e9fe95
tree3465d37ce38ce54d1d293b96af9b36b84ae39068
parent72407514c92c4e4b3584cba5961e63fb10c1a04e
arm64: restore cpu suspend/resume functionality

Commit 4b3dc9679cf7 ("arm64: force CONFIG_SMP=y and remove redundant #ifdefs")
accidentally retained code for !CONFIG_SMP in cpu_resume function. This
resulted in the hash index being zeroed in x7 after proper computation,
which is then used to get the cpu context pointer while resuming.

This patch removes the remanant code and restores back the cpu suspend/
resume functionality.

Fixes: 4b3dc9679cf7 ("arm64: force CONFIG_SMP=y and remove redundant #ifdefs")
Signed-off-by: Sudeep Holla <sudeep.holla@arm.com>
Cc: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Cc: Catalin Marinas <catalin.marinas@arm.com>
Cc: Will Deacon <will.deacon@arm.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
arch/arm64/kernel/sleep.S