diff options
author | John Baldwin <jhb@FreeBSD.org> | 2011-12-29 16:40:54 +0000 |
---|---|---|
committer | John Baldwin <jhb@FreeBSD.org> | 2011-12-29 16:40:54 +0000 |
commit | b494482f39cc9f5c4b5323419a8c851747cde440 (patch) | |
tree | af5b0b01c778d4289e73d5e06c1a14a144723665 /sys/i386 | |
parent | a74d6952999a01a4f471bf64a69d16cacc638495 (diff) | |
download | src-b494482f39cc9f5c4b5323419a8c851747cde440.tar.gz src-b494482f39cc9f5c4b5323419a8c851747cde440.zip |
Use curthread rather than PCPU_GET(curthread). 'curthread' uses
special-case optimizations on several platforms and is preferred.
Reported by: dim (indirectly)
MFC after: 2 weeks
Notes
Notes:
svn path=/head/; revision=228962
Diffstat (limited to 'sys/i386')
-rw-r--r-- | sys/i386/i386/sys_machdep.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/i386/i386/sys_machdep.c b/sys/i386/i386/sys_machdep.c index beffff2e1747..374690fa7a59 100644 --- a/sys/i386/i386/sys_machdep.c +++ b/sys/i386/i386/sys_machdep.c @@ -553,7 +553,7 @@ user_ldt_free(struct thread *td) return; } - if (td == PCPU_GET(curthread)) { + if (td == curthread) { #ifdef XEN i386_reset_ldt(&default_proc_ldt); PCPU_SET(currentldt, (int)&default_proc_ldt); |