Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 62438
b: refs/heads/master
c: 267eb01
h: refs/heads/master
v: v3
  • Loading branch information
Andreas Mohr authored and Linus Torvalds committed Jul 22, 2007
1 parent e3a7a89 commit ab44811
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 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: 8f03d6ce4ee20e7521b69188f6b5a9bb9ba7457f
refs/heads/master: 267eb01a62b1190d0bf87b1ef3b0c9d21cdb2c57
5 changes: 4 additions & 1 deletion trunk/include/asm-i386/mc146818rtc.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

#include <asm/io.h>
#include <asm/system.h>
#include <asm/processor.h>
#include <linux/mc146818rtc.h>

#ifndef RTC_PORT
Expand Down Expand Up @@ -43,8 +44,10 @@ static inline void lock_cmos(unsigned char reg)
unsigned long new;
new = ((smp_processor_id()+1) << 8) | reg;
for (;;) {
if (cmos_lock)
if (cmos_lock) {
cpu_relax();
continue;
}
if (__cmpxchg(&cmos_lock, 0, new, sizeof(cmos_lock)) == 0)
return;
}
Expand Down

0 comments on commit ab44811

Please sign in to comment.