Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 305015
b: refs/heads/master
c: 42fa425
h: refs/heads/master
i:
  305013: b5094f8
  305011: 2cf171a
  305007: b2eaf47
v: v3
  • Loading branch information
Shai Fultheim authored and Ingo Molnar committed May 7, 2012
1 parent 5817a2b commit 7c2f489
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 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: 22042c086c1b6814b9f3ecf2720f6280bede9c47
refs/heads/master: 42fa4250436304d4650fa271f37671f6cee24e08
12 changes: 7 additions & 5 deletions trunk/arch/x86/kernel/apic/apic.c
Original file line number Diff line number Diff line change
Expand Up @@ -1325,11 +1325,13 @@ void __cpuinit setup_local_APIC(void)
acked);
break;
}
if (cpu_has_tsc) {
rdtscll(ntsc);
max_loops = (cpu_khz << 10) - (ntsc - tsc);
} else
max_loops--;
if (queued) {
if (cpu_has_tsc) {
rdtscll(ntsc);
max_loops = (cpu_khz << 10) - (ntsc - tsc);
} else
max_loops--;
}
} while (queued && max_loops > 0);
WARN_ON(max_loops <= 0);

Expand Down

0 comments on commit 7c2f489

Please sign in to comment.