From: Krzysztof Kozlowski <k.kozlowski@samsung.com> To: Daniel Lezcano <daniel.lezcano@linaro.org>, Thomas Gleixner <tglx@linutronix.de>, Kukjin Kim <kgene.kim@samsung.com>, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org Cc: Kyungmin Park <kyungmin.park@samsung.com>, Marek Szyprowski <m.szyprowski@samsung.com>, Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>, Tomasz Figa <t.figa@samsung.com>, Krzysztof Kozlowski <k.kozlowski@samsung.com> Subject: [PATCH 2/3] clocksource: exynos_mct: Change exynos4_mct_tick_clear return type to void Date: Fri, 28 Mar 2014 14:06:01 +0100 [thread overview] Message-ID: <1396011962-4467-2-git-send-email-k.kozlowski@samsung.com> (raw) In-Reply-To: <1396011962-4467-1-git-send-email-k.kozlowski@samsung.com> Return value of exynos4_mct_tick_clear() was never checked so it can be safely changed to void. Signed-off-by: Krzysztof Kozlowski <k.kozlowski@samsung.com> --- drivers/clocksource/exynos_mct.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/drivers/clocksource/exynos_mct.c b/drivers/clocksource/exynos_mct.c index 0b49b09dd1a9..2ac7d228743a 100644 --- a/drivers/clocksource/exynos_mct.c +++ b/drivers/clocksource/exynos_mct.c @@ -376,15 +376,11 @@ static inline void exynos4_tick_set_mode(enum clock_event_mode mode, } } -static int exynos4_mct_tick_clear(struct mct_clock_event_device *mevt) +static void exynos4_mct_tick_clear(struct mct_clock_event_device *mevt) { /* Clear the MCT tick interrupt */ - if (__raw_readl(reg_base + mevt->base + MCT_L_INT_CSTAT_OFFSET) & 1) { + if (__raw_readl(reg_base + mevt->base + MCT_L_INT_CSTAT_OFFSET) & 1) exynos4_mct_write(0x1, mevt->base + MCT_L_INT_CSTAT_OFFSET); - return 1; - } - - return 0; } static irqreturn_t exynos4_mct_tick_isr(int irq, void *dev_id) -- 1.7.9.5
WARNING: multiple messages have this Message-ID (diff)
From: k.kozlowski@samsung.com (Krzysztof Kozlowski) To: linux-arm-kernel@lists.infradead.org Subject: [PATCH 2/3] clocksource: exynos_mct: Change exynos4_mct_tick_clear return type to void Date: Fri, 28 Mar 2014 14:06:01 +0100 [thread overview] Message-ID: <1396011962-4467-2-git-send-email-k.kozlowski@samsung.com> (raw) In-Reply-To: <1396011962-4467-1-git-send-email-k.kozlowski@samsung.com> Return value of exynos4_mct_tick_clear() was never checked so it can be safely changed to void. Signed-off-by: Krzysztof Kozlowski <k.kozlowski@samsung.com> --- drivers/clocksource/exynos_mct.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/drivers/clocksource/exynos_mct.c b/drivers/clocksource/exynos_mct.c index 0b49b09dd1a9..2ac7d228743a 100644 --- a/drivers/clocksource/exynos_mct.c +++ b/drivers/clocksource/exynos_mct.c @@ -376,15 +376,11 @@ static inline void exynos4_tick_set_mode(enum clock_event_mode mode, } } -static int exynos4_mct_tick_clear(struct mct_clock_event_device *mevt) +static void exynos4_mct_tick_clear(struct mct_clock_event_device *mevt) { /* Clear the MCT tick interrupt */ - if (__raw_readl(reg_base + mevt->base + MCT_L_INT_CSTAT_OFFSET) & 1) { + if (__raw_readl(reg_base + mevt->base + MCT_L_INT_CSTAT_OFFSET) & 1) exynos4_mct_write(0x1, mevt->base + MCT_L_INT_CSTAT_OFFSET); - return 1; - } - - return 0; } static irqreturn_t exynos4_mct_tick_isr(int irq, void *dev_id) -- 1.7.9.5
next prev parent reply other threads:[~2014-03-28 13:06 UTC|newest] Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top 2014-03-28 13:06 [PATCH 1/3] clocksource: exynos_mct: Fix stall after CPU hotplugging Krzysztof Kozlowski 2014-03-28 13:06 ` Krzysztof Kozlowski 2014-03-28 13:06 ` Krzysztof Kozlowski [this message] 2014-03-28 13:06 ` [PATCH 2/3] clocksource: exynos_mct: Change exynos4_mct_tick_clear return type to void Krzysztof Kozlowski 2014-03-28 13:06 ` [PATCH 3/3] clocksource: exynos_mct: Fix too early ISR fire up on wrong CPU Krzysztof Kozlowski 2014-03-28 13:06 ` Krzysztof Kozlowski 2014-03-28 13:06 ` Krzysztof Kozlowski 2014-04-15 9:34 ` [PATCH 1/3] clocksource: exynos_mct: Fix stall after CPU hotplugging Krzysztof Kozlowski 2014-04-15 9:34 ` Krzysztof Kozlowski 2014-04-15 12:28 ` Daniel Lezcano 2014-04-15 12:28 ` Daniel Lezcano 2014-04-15 12:47 ` Krzysztof Kozlowski 2014-04-15 12:47 ` Krzysztof Kozlowski 2014-04-15 15:20 ` Thomas Gleixner 2014-04-15 15:20 ` Thomas Gleixner 2014-04-15 15:41 ` Krzysztof Kozlowski 2014-04-15 15:41 ` Krzysztof Kozlowski 2014-04-15 16:20 ` Thomas Gleixner 2014-04-15 16:20 ` Thomas Gleixner 2014-04-16 8:51 ` Krzysztof Kozlowski 2014-04-16 8:51 ` Krzysztof Kozlowski 2014-04-16 9:41 ` Thomas Gleixner 2014-04-16 9:41 ` Thomas Gleixner
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=1396011962-4467-2-git-send-email-k.kozlowski@samsung.com \ --to=k.kozlowski@samsung.com \ --cc=b.zolnierkie@samsung.com \ --cc=daniel.lezcano@linaro.org \ --cc=kgene.kim@samsung.com \ --cc=kyungmin.park@samsung.com \ --cc=linux-arm-kernel@lists.infradead.org \ --cc=linux-kernel@vger.kernel.org \ --cc=linux-samsung-soc@vger.kernel.org \ --cc=m.szyprowski@samsung.com \ --cc=t.figa@samsung.com \ --cc=tglx@linutronix.de \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.