Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1482638 > unrolled thread

[PATCH 2/2] clocksource: mips-gic-timer: Stop checking cpu_has_counter

Started byPaul Burton <paul.burton@imgtec.com>
First post2016-09-13 19:00 +0200
Last post2016-09-20 23:40 +0200
Articles 2 — 2 participants

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  [PATCH 2/2] clocksource: mips-gic-timer: Stop checking cpu_has_counter Paul Burton <paul.burton@imgtec.com> - 2016-09-13 19:00 +0200
    [tip:timers/core] clocksource/mips-gic-timer: Stop checking  cpu_has_counter tip-bot for Paul Burton <tipbot@zytor.com> - 2016-09-20 23:40 +0200

#1482638 — [PATCH 2/2] clocksource: mips-gic-timer: Stop checking cpu_has_counter

FromPaul Burton <paul.burton@imgtec.com>
Date2016-09-13 19:00 +0200
Subject[PATCH 2/2] clocksource: mips-gic-timer: Stop checking cpu_has_counter
Message-ID<sgZdU-4vC-11@gated-at.bofh.it>
The cpu_has_counter macro indicates whether the current CPU has a
working coprocessor 0 count & compare registers, and has no bearing on
the GIC. Stop checking it.

Signed-off-by: Paul Burton <paul.burton@imgtec.com>
Cc: Daniel Lezcano <daniel.lezcano@linaro.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: linux-kernel@vger.kernel.org
Cc: linux-mips@linux-mips.org
---
 drivers/clocksource/mips-gic-timer.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/clocksource/mips-gic-timer.c b/drivers/clocksource/mips-gic-timer.c
index 802055b..7a960cd 100644
--- a/drivers/clocksource/mips-gic-timer.c
+++ b/drivers/clocksource/mips-gic-timer.c
@@ -109,7 +109,7 @@ static int gic_clockevent_init(void)
 {
 	int ret;
 
-	if (!cpu_has_counter || !gic_frequency)
+	if (!gic_frequency)
 		return -ENXIO;
 
 	ret = setup_percpu_irq(gic_timer_irq, &gic_compare_irqaction);
-- 
2.9.3

[toc] | [next] | [standalone]


#1487660 — [tip:timers/core] clocksource/mips-gic-timer: Stop checking cpu_has_counter

Fromtip-bot for Paul Burton <tipbot@zytor.com>
Date2016-09-20 23:40 +0200
Subject[tip:timers/core] clocksource/mips-gic-timer: Stop checking cpu_has_counter
Message-ID<sjAVI-8wm-25@gated-at.bofh.it>
In reply to#1482638
Commit-ID:  6982530eab096939f9c5b607a5ce8078df19737e
Gitweb:     http://git.kernel.org/tip/6982530eab096939f9c5b607a5ce8078df19737e
Author:     Paul Burton <paul.burton@imgtec.com>
AuthorDate: Tue, 13 Sep 2016 17:56:44 +0100
Committer:  Thomas Gleixner <tglx@linutronix.de>
CommitDate: Tue, 20 Sep 2016 23:24:33 +0200

clocksource/mips-gic-timer: Stop checking cpu_has_counter

The cpu_has_counter macro indicates whether the current CPU has a
working coprocessor 0 count & compare registers, and has no bearing on
the GIC. Stop checking it.

Signed-off-by: Paul Burton <paul.burton@imgtec.com>
Cc: linux-mips@linux-mips.org
Cc: Daniel Lezcano <daniel.lezcano@linaro.org>
Link: http://lkml.kernel.org/r/20160913165644.627-2-paul.burton@imgtec.com
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>

---
 drivers/clocksource/mips-gic-timer.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/clocksource/mips-gic-timer.c b/drivers/clocksource/mips-gic-timer.c
index 802055b..7a960cd 100644
--- a/drivers/clocksource/mips-gic-timer.c
+++ b/drivers/clocksource/mips-gic-timer.c
@@ -109,7 +109,7 @@ static int gic_clockevent_init(void)
 {
 	int ret;
 
-	if (!cpu_has_counter || !gic_frequency)
+	if (!gic_frequency)
 		return -ENXIO;
 
 	ret = setup_percpu_irq(gic_timer_irq, &gic_compare_irqaction);

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web