Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(3)

Unified Diff: src/pkg/runtime/sys_linux_amd64.s

Issue 6448132: code review 6448132: runtime: use sched_getaffinity for runtime.NumCPU() (Closed)
Patch Set: diff -r 823f9cd8acba https://code.google.com/p/go/ Created 12 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/pkg/runtime/sys_linux_386.s ('k') | src/pkg/runtime/sys_linux_arm.s » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/pkg/runtime/sys_linux_amd64.s
===================================================================
--- a/src/pkg/runtime/sys_linux_amd64.s
+++ b/src/pkg/runtime/sys_linux_amd64.s
@@ -310,3 +310,11 @@
MOVL $24, AX
SYSCALL
RET
+
+TEXT runtime·sched_getaffinity(SB),7,$0
+ MOVQ 8(SP), DI
+ MOVL 16(SP), SI
+ MOVQ 24(SP), DX
+ MOVL $204, AX // syscall entry
+ SYSCALL
+ RET
« no previous file with comments | « src/pkg/runtime/sys_linux_386.s ('k') | src/pkg/runtime/sys_linux_arm.s » ('j') | no next file with comments »

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b