diff options
Diffstat (limited to 'drivers/clocksource')
-rw-r--r-- | drivers/clocksource/acpi_pm.c | 1 | ||||
-rw-r--r-- | drivers/clocksource/sh_cmt.c | 4 | ||||
-rw-r--r-- | drivers/clocksource/sh_mtu2.c | 1 | ||||
-rw-r--r-- | drivers/clocksource/sh_tmu.c | 4 |
4 files changed, 7 insertions, 3 deletions
diff --git a/drivers/clocksource/acpi_pm.c b/drivers/clocksource/acpi_pm.c index 40bd8c61c7d7..72a633a6ec98 100644 --- a/drivers/clocksource/acpi_pm.c +++ b/drivers/clocksource/acpi_pm.c | |||
@@ -18,6 +18,7 @@ | |||
18 | 18 | ||
19 | #include <linux/acpi_pmtmr.h> | 19 | #include <linux/acpi_pmtmr.h> |
20 | #include <linux/clocksource.h> | 20 | #include <linux/clocksource.h> |
21 | #include <linux/timex.h> | ||
21 | #include <linux/errno.h> | 22 | #include <linux/errno.h> |
22 | #include <linux/init.h> | 23 | #include <linux/init.h> |
23 | #include <linux/pci.h> | 24 | #include <linux/pci.h> |
diff --git a/drivers/clocksource/sh_cmt.c b/drivers/clocksource/sh_cmt.c index cf56a2af5fe1..2964f5f4a7ef 100644 --- a/drivers/clocksource/sh_cmt.c +++ b/drivers/clocksource/sh_cmt.c | |||
@@ -184,6 +184,9 @@ static void sh_cmt_disable(struct sh_cmt_priv *p) | |||
184 | /* disable channel */ | 184 | /* disable channel */ |
185 | sh_cmt_start_stop_ch(p, 0); | 185 | sh_cmt_start_stop_ch(p, 0); |
186 | 186 | ||
187 | /* disable interrupts in CMT block */ | ||
188 | sh_cmt_write(p, CMCSR, 0); | ||
189 | |||
187 | /* stop clock */ | 190 | /* stop clock */ |
188 | clk_disable(p->clk); | 191 | clk_disable(p->clk); |
189 | } | 192 | } |
@@ -599,7 +602,6 @@ static int sh_cmt_setup(struct sh_cmt_priv *p, struct platform_device *pdev) | |||
599 | p->irqaction.handler = sh_cmt_interrupt; | 602 | p->irqaction.handler = sh_cmt_interrupt; |
600 | p->irqaction.dev_id = p; | 603 | p->irqaction.dev_id = p; |
601 | p->irqaction.flags = IRQF_DISABLED | IRQF_TIMER | IRQF_IRQPOLL; | 604 | p->irqaction.flags = IRQF_DISABLED | IRQF_TIMER | IRQF_IRQPOLL; |
602 | p->irqaction.mask = CPU_MASK_NONE; | ||
603 | ret = setup_irq(irq, &p->irqaction); | 605 | ret = setup_irq(irq, &p->irqaction); |
604 | if (ret) { | 606 | if (ret) { |
605 | pr_err("sh_cmt: failed to request irq %d\n", irq); | 607 | pr_err("sh_cmt: failed to request irq %d\n", irq); |
diff --git a/drivers/clocksource/sh_mtu2.c b/drivers/clocksource/sh_mtu2.c index d1ae75454d10..973e714d6051 100644 --- a/drivers/clocksource/sh_mtu2.c +++ b/drivers/clocksource/sh_mtu2.c | |||
@@ -283,7 +283,6 @@ static int sh_mtu2_setup(struct sh_mtu2_priv *p, struct platform_device *pdev) | |||
283 | p->irqaction.dev_id = p; | 283 | p->irqaction.dev_id = p; |
284 | p->irqaction.irq = irq; | 284 | p->irqaction.irq = irq; |
285 | p->irqaction.flags = IRQF_DISABLED | IRQF_TIMER | IRQF_IRQPOLL; | 285 | p->irqaction.flags = IRQF_DISABLED | IRQF_TIMER | IRQF_IRQPOLL; |
286 | p->irqaction.mask = CPU_MASK_NONE; | ||
287 | 286 | ||
288 | /* get hold of clock */ | 287 | /* get hold of clock */ |
289 | p->clk = clk_get(&p->pdev->dev, cfg->clk); | 288 | p->clk = clk_get(&p->pdev->dev, cfg->clk); |
diff --git a/drivers/clocksource/sh_tmu.c b/drivers/clocksource/sh_tmu.c index d6ea4398bf62..9ffb05f4095d 100644 --- a/drivers/clocksource/sh_tmu.c +++ b/drivers/clocksource/sh_tmu.c | |||
@@ -138,6 +138,9 @@ static void sh_tmu_disable(struct sh_tmu_priv *p) | |||
138 | /* disable channel */ | 138 | /* disable channel */ |
139 | sh_tmu_start_stop_ch(p, 0); | 139 | sh_tmu_start_stop_ch(p, 0); |
140 | 140 | ||
141 | /* disable interrupts in TMU block */ | ||
142 | sh_tmu_write(p, TCR, 0x0000); | ||
143 | |||
141 | /* stop clock */ | 144 | /* stop clock */ |
142 | clk_disable(p->clk); | 145 | clk_disable(p->clk); |
143 | } | 146 | } |
@@ -385,7 +388,6 @@ static int sh_tmu_setup(struct sh_tmu_priv *p, struct platform_device *pdev) | |||
385 | p->irqaction.dev_id = p; | 388 | p->irqaction.dev_id = p; |
386 | p->irqaction.irq = irq; | 389 | p->irqaction.irq = irq; |
387 | p->irqaction.flags = IRQF_DISABLED | IRQF_TIMER | IRQF_IRQPOLL; | 390 | p->irqaction.flags = IRQF_DISABLED | IRQF_TIMER | IRQF_IRQPOLL; |
388 | p->irqaction.mask = CPU_MASK_NONE; | ||
389 | 391 | ||
390 | /* get hold of clock */ | 392 | /* get hold of clock */ |
391 | p->clk = clk_get(&p->pdev->dev, cfg->clk); | 393 | p->clk = clk_get(&p->pdev->dev, cfg->clk); |