Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 276599
b: refs/heads/master
c: 2ded6e6
h: refs/heads/master
i:
  276597: 1719ca2
  276595: bab8925
  276591: 4fdad4b
v: v3
  • Loading branch information
Mark Langsdorf authored and Thomas Gleixner committed Dec 8, 2011
1 parent c0ac203 commit e36c063
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 8 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: 4e2b1c4f56227c742bbd2ea8e8f559567eb80c3f
refs/heads/master: 2ded6e6a94c98ea453a156748cb7fabaf39a76b9
21 changes: 14 additions & 7 deletions trunk/arch/x86/kernel/hpet.c
Original file line number Diff line number Diff line change
Expand Up @@ -1049,6 +1049,14 @@ int hpet_rtc_timer_init(void)
}
EXPORT_SYMBOL_GPL(hpet_rtc_timer_init);

static void hpet_disable_rtc_channel(void)
{
unsigned long cfg;
cfg = hpet_readl(HPET_T1_CFG);
cfg &= ~HPET_TN_ENABLE;
hpet_writel(cfg, HPET_T1_CFG);
}

/*
* The functions below are called from rtc driver.
* Return 0 if HPET is not being used.
Expand All @@ -1060,6 +1068,9 @@ int hpet_mask_rtc_irq_bit(unsigned long bit_mask)
return 0;

hpet_rtc_flags &= ~bit_mask;
if (unlikely(!hpet_rtc_flags))
hpet_disable_rtc_channel();

return 1;
}
EXPORT_SYMBOL_GPL(hpet_mask_rtc_irq_bit);
Expand Down Expand Up @@ -1125,15 +1136,11 @@ EXPORT_SYMBOL_GPL(hpet_rtc_dropped_irq);

static void hpet_rtc_timer_reinit(void)
{
unsigned int cfg, delta;
unsigned int delta;
int lost_ints = -1;

if (unlikely(!hpet_rtc_flags)) {
cfg = hpet_readl(HPET_T1_CFG);
cfg &= ~HPET_TN_ENABLE;
hpet_writel(cfg, HPET_T1_CFG);
return;
}
if (unlikely(!hpet_rtc_flags))
hpet_disable_rtc_channel();

if (!(hpet_rtc_flags & RTC_PIE) || hpet_pie_limit)
delta = hpet_default_delta;
Expand Down

0 comments on commit e36c063

Please sign in to comment.