]> git.baikalelectronics.ru Git - kernel.git/commit
rt2x00: Optimize rt2x00debug_dump_frame when frame dumping is not active
authorHelmut Schaa <helmut.schaa@googlemail.com>
Thu, 4 Nov 2010 19:38:56 +0000 (20:38 +0100)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 15 Nov 2010 18:26:00 +0000 (13:26 -0500)
commit891d889aed6e614a3e2ace9d19ff1ecb2aa994f6
tree4ebaf573ce33eb5002b454eb0d432ddef31d51e5
parentb891e62fb4ced8058b4c2cc413643aa96428c563
rt2x00: Optimize rt2x00debug_dump_frame when frame dumping is not active

When rt2x00 is compiled with debugging but frame dumping is currently
not active we can avoid the call to do_gettimeofday. Furthermore,
frame dumping is not the default case, mark it as unlikely.

Signed-off-by: Helmut Schaa <helmut.schaa@googlemail.com>
Signed-off-by: Ivo van Doorn <IvDoorn@gmail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/rt2x00/rt2x00debug.c