ACPICA: FUNCTION_TRACE macros: Check if debug is enabled up-front.
authorBob Moore <robert.moore@intel.com>
Mon, 31 Dec 2012 00:06:10 +0000 (00:06 +0000)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Thu, 10 Jan 2013 11:36:20 +0000 (12:36 +0100)
commitdb38bf5a57a955975986b514c6bbd7cb324fddc3
tree0d9f828f725be19ed931b964f92a891873079ab9
parentad5a06f2969763059bb26399fa97569385074e01
ACPICA: FUNCTION_TRACE macros: Check if debug is enabled up-front.

In the functions that implement the macros, check if debug
is enabled up-front before the call to the lower debug print
function. This provides a small performance improvement.

Signed-off-by: Bob Moore <robert.moore@intel.com>
Signed-off-by: Lv Zheng <lv.zheng@intel.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/acpi/acpica/utdebug.c