From: Kan Liang Date: Tue, 20 Jan 2015 04:54:25 +0000 (+0000) Subject: perf/x86/intel/uncore: Move uncore_box_init() out of driver initialization X-Git-Tag: omap-for-v4.1/prcm-dts-mfd-syscon-fix~204^2~4 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c05199e5a57a579fea1e8fa65e2b511ceb524ffc;p=pandora-kernel.git perf/x86/intel/uncore: Move uncore_box_init() out of driver initialization There were some issues about the uncore driver tried to access non-existing boxes, which caused boot crashes. These issues have been all fixed. But we should avoid boot failures if that ever happens again. This patch intends to prevent this kind of potential issues. It moves uncore_box_init out of driver initialization. The box will be initialized when it's first enabled. Signed-off-by: Kan Liang Signed-off-by: Peter Zijlstra (Intel) Link: http://lkml.kernel.org/r/1421729665-5912-1-git-send-email-kan.liang@intel.com Cc: Arnaldo Carvalho de Melo Cc: Stephane Eranian Cc: Yan, Zheng Signed-off-by: Ingo Molnar --- Reading git-diff-tree failed