From 45557aff35b679bf2ed282cbc62339d31192dc24 Mon Sep 17 00:00:00 2001 From: Sameer Nanda Date: Wed, 6 Jun 2012 11:03:57 -0700 Subject: [PATCH] CHROMIUM: power: add knob for printing device resume times Added a new knob called /sys/power/pm_print_times. Setting it to 1 enables printing of time taken by devices to suspend and resume. Setting it to 0 disables this printing (unless overridden by initcall_debug kernel command line option). This patch has been sent upstream but seems to be in limbo there. Pushing as a CHROMIUM patch for now and will revisit once the upstream discussion happens. BUG=chromium-os:30539 TEST=First enable device suspend/resume time printing by issuing this command: "echo 1 > /sys/power/pm_print_times". Then do a suspend/resume cycle. After resuming look at dmesg and there should be several "call returned 0 after