forked from torvalds/linux
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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>
- Loading branch information
Nigel Cunningham
authored and
Linus Torvalds
committed
Jul 22, 2007
1 parent
9ef231a
commit 44bf4ce
Showing
6 changed files
with
43 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
#define TRACE_RESUME(user) do { \ | ||
if (pm_trace_enabled) { \ | ||
void *tracedata; \ | ||
asm volatile("movl $1f,%0\n" \ | ||
".section .tracedata,\"a\"\n" \ | ||
"1:\t.word %c1\n" \ | ||
"\t.long %c2\n" \ | ||
".previous" \ | ||
:"=r" (tracedata) \ | ||
: "i" (__LINE__), "i" (__FILE__)); \ | ||
generate_resume_trace(tracedata, user); \ | ||
} \ | ||
} while (0) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters