Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 212049
b: refs/heads/master
c: a68e5c9
h: refs/heads/master
i:
  212047: 06df4fa
v: v3
  • Loading branch information
H. Peter Anvin committed Sep 18, 2010
1 parent 8db38af commit 0b9bc47
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: ea53069231f9317062910d6e772cca4ce93de8c8
refs/heads/master: a68e5c94f7d3dd64fef34dd5d97e365cae4bb42a
11 changes: 5 additions & 6 deletions trunk/arch/x86/kernel/smpboot.c
Original file line number Diff line number Diff line change
Expand Up @@ -1422,9 +1422,9 @@ static inline void mwait_play_dead(void)
(highest_subcstate - 1);
}

wbinvd();

while (1) {
mb();
wbinvd();
__monitor(&current_thread_info()->flags, 0, 0);
mb();
__mwait(eax, 0);
Expand All @@ -1433,11 +1433,10 @@ static inline void mwait_play_dead(void)

static inline void hlt_play_dead(void)
{
if (current_cpu_data.x86 >= 4)
wbinvd();

while (1) {
mb();
if (current_cpu_data.x86 >= 4)
wbinvd();
mb();
native_halt();
}
}
Expand Down

0 comments on commit 0b9bc47

Please sign in to comment.