include/asm-x86/mc146818rtc.h: checkpatch cleanups - formatting only
Signed-off-by: Joe Perches <joe@perches.com> Signed-off-by: Ingo Molnar <mingo@elte.hu>
This commit is contained in:
parent
69cde6512c
commit
933a44155c
|
@ -57,19 +57,23 @@ static inline void unlock_cmos(void)
|
|||
{
|
||||
cmos_lock = 0;
|
||||
}
|
||||
|
||||
static inline int do_i_have_lock_cmos(void)
|
||||
{
|
||||
return (cmos_lock >> 8) == (smp_processor_id() + 1);
|
||||
}
|
||||
|
||||
static inline unsigned char current_lock_cmos_reg(void)
|
||||
{
|
||||
return cmos_lock & 0xff;
|
||||
}
|
||||
|
||||
#define lock_cmos_prefix(reg) \
|
||||
do { \
|
||||
unsigned long cmos_flags; \
|
||||
local_irq_save(cmos_flags); \
|
||||
lock_cmos(reg)
|
||||
|
||||
#define lock_cmos_suffix(reg) \
|
||||
unlock_cmos(); \
|
||||
local_irq_restore(cmos_flags); \
|
||||
|
|
Loading…
Reference in New Issue