mirror of
https://github.com/FEX-Emu/linux.git
synced 2024-12-21 08:53:41 +00:00
44bf4cea43
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>
14 lines
366 B
C
14 lines
366 B
C
#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)
|