From: Michael Ellerman Date: Tue, 9 Oct 2012 04:20:36 +0000 (+0000) Subject: powerpc/xmon: Fiddle xmon_depth_to_print logic in xmon_show_stack() X-Git-Tag: v3.8-rc1~68^2~47 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0104cd6839bd575f0aa1af4125eb865dc0391aae;p=pandora-kernel.git powerpc/xmon: Fiddle xmon_depth_to_print logic in xmon_show_stack() Currently xmon_depth_to_print is static and global, but it's only ever used in xmon_show_stack(). At least with a modern compiler it's inlined, so there's no point in it being static, we could #define it but it's only used in one place. By reworking the logic we can drop count and just decrement the max value as a loop counter. Also switch to a while loop so we actually print no more than 64 frames as you'd expect based on the variable name. Signed-off-by: Michael Ellerman Signed-off-by: Benjamin Herrenschmidt --- Reading git-diff-tree failed