From: Rafael J. Wysocki Date: Sun, 21 Mar 2010 20:51:51 +0000 (+0100) Subject: x86 / perf: Fix suspend to RAM on HP nx6325 X-Git-Tag: v2.6.34-rc3~89 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a90110c61073eab95d1986322693c2b9a8a6a5f6;p=pandora-kernel.git x86 / perf: Fix suspend to RAM on HP nx6325 Commit 3f6da3905398826d85731247e7fbcf53400c18bd (perf: Rework and fix the arch CPU-hotplug hooks) broke suspend to RAM on my HP nx6325 (and most likely on other AMD-based boxes too) by allowing amd_pmu_cpu_offline() to be executed for CPUs that are going offline as part of the suspend process. The problem is that cpuhw->amd_nb may be NULL already, so the function should make sure it's not NULL before accessing the object pointed to by it. Signed-off-by: Rafael J. Wysocki Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed