From: Milton Miller Date: Fri, 14 Dec 2007 04:52:19 +0000 (+1100) Subject: [POWERPC] Depend on ->initialized in calc_steal_time X-Git-Tag: v2.6.25-rc1~1131^2~261 X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=db3801a858e97adee0f3b4c732e6ff325d95e0a5;p=pandora-kernel.git [POWERPC] Depend on ->initialized in calc_steal_time If CPU_FTR_PURR is not set, we will never set cpu_purr_data->initialized. Checking via __get_cpu_var on 64 bit avoids one dependent load compared to cpu_has_feature in the not-present case, and is always required when it is present. The code is under CONFIG_VIRT_CPU_ACCOUNTING so 32 bit will not be affected. Signed-off-by: Milton Miller Signed-off-by: Paul Mackerras --- Reading git-diff-tree failed