diff options
author | Nigel Cunningham <nigel@nigel.suspend2.net> | 2007-07-21 17:10:41 +0200 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-07-21 18:37:10 -0700 |
commit | 44bf4cea43816d43deab73c1c16361e899996eaa (patch) | |
tree | 7ed3e6672f6abe3a68a79c77a7af125d0e0dab21 /include/asm-x86_64 | |
parent | 9ef231a436fddb34d806f599c97b479691b3c38b (diff) | |
download | kernel_samsung_smdk4412-44bf4cea43816d43deab73c1c16361e899996eaa.zip kernel_samsung_smdk4412-44bf4cea43816d43deab73c1c16361e899996eaa.tar.gz kernel_samsung_smdk4412-44bf4cea43816d43deab73c1c16361e899996eaa.tar.bz2 |
x86: PM_TRACE support
Signed-off-by: Nigel Cunningham <nigel@nigel.suspend2.net>
Cc: Randy Dunlap <rdunlap@xenotime.net>
Cc: "Rafael J. Wysocki" <rjw@sisk.pl>
Cc: Pavel Machek <pavel@ucw.cz>
Acked-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Andi Kleen <ak@suse.de>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'include/asm-x86_64')
-rw-r--r-- | include/asm-x86_64/resume-trace.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/include/asm-x86_64/resume-trace.h b/include/asm-x86_64/resume-trace.h new file mode 100644 index 0000000..34bf998 --- /dev/null +++ b/include/asm-x86_64/resume-trace.h @@ -0,0 +1,13 @@ +#define TRACE_RESUME(user) do { \ + if (pm_trace_enabled) { \ + void *tracedata; \ + asm volatile("movq $1f,%0\n" \ + ".section .tracedata,\"a\"\n" \ + "1:\t.word %c1\n" \ + "\t.quad %c2\n" \ + ".previous" \ + :"=r" (tracedata) \ + : "i" (__LINE__), "i" (__FILE__)); \ + generate_resume_trace(tracedata, user); \ + } \ +} while (0) |