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


Groups > linux.kernel > #1261544

[PATCH v2 2/3] ARM: arch_timer: set the arch_delay_timer rating as 400

From Jisheng Zhang <jszhang@marvell.com>
Newsgroups linux.kernel
Subject [PATCH v2 2/3] ARM: arch_timer: set the arch_delay_timer rating as 400
Date 2015-11-03 15:40 +0100
Message-ID <qqKUG-3Ux-23@gated-at.bofh.it> (permalink)
References <qqKUG-3Ux-3@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


This patch sets the arch_delay_timer rating as the same value used in
arch_timer clocksource. This is to help register_current_timer_delay()
to choose the best delay timer during several possible delay timers.

Signed-off-by: Jisheng Zhang <jszhang@marvell.com>
---
 arch/arm/kernel/arch_timer.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/arch/arm/kernel/arch_timer.c b/arch/arm/kernel/arch_timer.c
index 1791f12..db5f556 100644
--- a/arch/arm/kernel/arch_timer.c
+++ b/arch/arm/kernel/arch_timer.c
@@ -28,6 +28,7 @@ static void __init arch_timer_delay_timer_register(void)
 	/* Use the architected timer for the delay loop. */
 	arch_delay_timer.read_current_timer = arch_timer_read_counter_long;
 	arch_delay_timer.freq = arch_timer_get_rate();
+	arch_delay_timer.rating = 400;
 	register_current_timer_delay(&arch_delay_timer);
 }
 
-- 
2.6.2

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH v2 0/3] let Marvell Berlin SoCs make use of the best delay timer Jisheng Zhang <jszhang@marvell.com> - 2015-11-03 15:40 +0100
  [PATCH v2 2/3] ARM: arch_timer: set the arch_delay_timer rating as 400 Jisheng Zhang <jszhang@marvell.com> - 2015-11-03 15:40 +0100
  Re: [PATCH v2 0/3] let Marvell Berlin SoCs make use of the best delay  timer Daniel Lezcano <daniel.lezcano@linaro.org> - 2015-11-04 10:50 +0100
    Re: [PATCH v2 0/3] let Marvell Berlin SoCs make use of the best delay timer Arnd Bergmann <arnd@arndb.de> - 2015-11-04 11:40 +0100
      Re: [PATCH v2 0/3] let Marvell Berlin SoCs make use of the best delay  timer Daniel Lezcano <daniel.lezcano@linaro.org> - 2015-11-04 12:30 +0100
        Re: [PATCH v2 0/3] let Marvell Berlin SoCs make use of the best delay timer Arnd Bergmann <arnd@arndb.de> - 2015-11-04 13:30 +0100
          Re: [PATCH v2 0/3] let Marvell Berlin SoCs make use of the best  delay timer Jisheng Zhang <jszhang@marvell.com> - 2015-11-05 03:50 +0100

csiph-web