summaryrefslogtreecommitdiffstats
path: root/arch/x86/include/asm/resume-trace.h
diff options
context:
space:
mode:
authorZhonghui Fu <zhonghui.fu@linux.intel.com>2015-03-18 15:54:27 +0100
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2015-03-18 15:54:27 +0100
commit431d452af13720463dda498999b2e9a08729c03a (patch)
tree581e00b8b20d6fbc60df1d0d0c4390141abe1f4f /arch/x86/include/asm/resume-trace.h
parent1d4a9c17d4d204a159139361e8d4db7f9f267879 (diff)
downloadtalos-op-linux-431d452af13720463dda498999b2e9a08729c03a.tar.gz
talos-op-linux-431d452af13720463dda498999b2e9a08729c03a.zip
PM / sleep: add pm-trace support for suspending phase
Occasionally, the system can't come back up after suspend/resume due to problems of device suspending phase. This patch make PM_TRACE infrastructure cover device suspending phase of suspend/resume process, and the information in RTC can tell developers which device suspending function make system hang. Signed-off-by: Zhonghui Fu <zhonghui.fu@linux.intel.com> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'arch/x86/include/asm/resume-trace.h')
-rw-r--r--arch/x86/include/asm/resume-trace.h21
1 files changed, 0 insertions, 21 deletions
diff --git a/arch/x86/include/asm/resume-trace.h b/arch/x86/include/asm/resume-trace.h
deleted file mode 100644
index 3ff1c2cb1da5..000000000000
--- a/arch/x86/include/asm/resume-trace.h
+++ /dev/null
@@ -1,21 +0,0 @@
-#ifndef _ASM_X86_RESUME_TRACE_H
-#define _ASM_X86_RESUME_TRACE_H
-
-#include <asm/asm.h>
-
-#define TRACE_RESUME(user) \
-do { \
- if (pm_trace_enabled) { \
- const void *tracedata; \
- asm volatile(_ASM_MOV " $1f,%0\n" \
- ".section .tracedata,\"a\"\n" \
- "1:\t.word %c1\n\t" \
- _ASM_PTR " %c2\n" \
- ".previous" \
- :"=r" (tracedata) \
- : "i" (__LINE__), "i" (__FILE__)); \
- generate_resume_trace(tracedata, user); \
- } \
-} while (0)
-
-#endif /* _ASM_X86_RESUME_TRACE_H */
OpenPOWER on IntegriCloud