Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 163029
b: refs/heads/master
c: a95436e
h: refs/heads/master
i:
  163027: c1beb59
v: v3
  • Loading branch information
Borislav Petkov authored and H. Peter Anvin committed Jun 21, 2009
1 parent dc3df25 commit d7453e5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 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: e487683990972bf9aa4e688434c46ead76748bca
refs/heads/master: a95436e44a76a32dcbe7c8df59701ddde53017c1
4 changes: 2 additions & 2 deletions trunk/arch/x86/kernel/cpu/mcheck/mce.c
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ static void mce_panic(char *msg, struct mce *final, char *exp)
/*
* Make sure only one CPU runs in machine check panic
*/
if (atomic_add_return(1, &mce_paniced) > 1)
if (atomic_inc_return(&mce_paniced) > 1)
wait_for_panic();
barrier();

Expand Down Expand Up @@ -705,7 +705,7 @@ static int mce_start(int *no_way_out)
* global_nwo should be updated before mce_callin
*/
smp_wmb();
order = atomic_add_return(1, &mce_callin);
order = atomic_inc_return(&mce_callin);

/*
* Wait for everyone.
Expand Down

0 comments on commit d7453e5

Please sign in to comment.