summaryrefslogtreecommitdiff
path: root/drivers/amba
diff options
context:
space:
mode:
authorMichael Ellerman <michael@ellerman.id.au>2006-03-23 12:32:24 (GMT)
committerPaul Mackerras <paulus@samba.org>2006-03-27 03:48:10 (GMT)
commite3f94b85f98a346c5eb0ac0d9539b71cb7057143 (patch)
tree69cc1fcb75d5af9e89c6a28264547bfc5deadd1b /drivers/amba
parentaf308377e204e25f1f58627d05fe0f483703b514 (diff)
downloadlinux-e3f94b85f98a346c5eb0ac0d9539b71cb7057143.tar.xz
[PATCH] powerpc: Make BUG_ON & WARN_ON play nice with compile-time optimisations
Change BUG_ON and WARN_ON to give the compiler a chance to perform compile-time optimsations. Depending on the complexity of the condition, the compiler may not do this very well, so if it's important check the object code. Current GCC's (4.x) produce good code as long as the condition does not include a function call, including a static inline. Signed-off-by: Michael Ellerman <michael@ellerman.id.au> Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'drivers/amba')
0 files changed, 0 insertions, 0 deletions