summaryrefslogtreecommitdiffstats
path: root/sound
diff options
context:
space:
mode:
authorMichael Ellerman <michael@ellerman.id.au>2012-10-09 06:20:36 +0200
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>2012-11-15 02:59:59 +0100
commit0104cd6839bd575f0aa1af4125eb865dc0391aae (patch)
treeb6bc759e85a2bd98c1f61c5f96235d64c4c111c5 /sound
parentpowerpc/xmon: Use STACK_FRAME_OVERHEAD in xmon_show_stack() (diff)
downloadlinux-0104cd6839bd575f0aa1af4125eb865dc0391aae.tar.xz
linux-0104cd6839bd575f0aa1af4125eb865dc0391aae.zip
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 <michael@ellerman.id.au> Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Diffstat (limited to 'sound')
0 files changed, 0 insertions, 0 deletions