From: David S. Miller Date: Wed, 1 Apr 2009 23:22:27 +0000 (-0700) Subject: sparc64: Only allocate per-cpu areas for possible cpus. X-Git-Tag: v2.6.31-rc1~310^2~19 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0c243ad81f234672bebb72cf3dd014b9c841781d;p=pandora-kernel.git sparc64: Only allocate per-cpu areas for possible cpus. This gets us real close to the generic implementation of setup_per_cpu_areas() except: 1) We store the per-cpu offset into the trap_block[], whereas the generic code has it's own static array. 2) We have to initialize the %g5 register to hold the boot cpu's per-cpu area offset. 3) The OBP/MDESC cpu info scan is performed at the end. Signed-off-by: David S. Miller --- Reading git-diff-tree failed