forked from torvalds/linux
-
Notifications
You must be signed in to change notification settings - Fork 1
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 <[email protected]> Cc: Randy Dunlap <[email protected]> Cc: "Rafael J. Wysocki" <[email protected]> Cc: Pavel Machek <[email protected]> Acked-by: Linus Torvalds <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Andi Kleen <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
- 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