linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Alexandre Belloni <alexandre.belloni@free-electrons.com>
To: Nicolas Ferre <nicolas.ferre@atmel.com>
Cc: Boris Brezillon <boris.brezillon@free-electrons.com>,
	Jean-Christophe Plagniol-Villard <plagnioj@jcrosoft.com>,
	Arnd Bergmann <arnd@arndb.de>,
	linux-kernel@vger.kernel.org,
	linux-arm-kernel@lists.infradead.org,
	Alexandre Belloni <alexandre.belloni@free-electrons.com>
Subject: [PATCH v3 7/7] ARM: at91: drop AT91_TIMER_HZ
Date: Fri, 13 Mar 2015 22:57:24 +0100	[thread overview]
Message-ID: <1426283844-463-8-git-send-email-alexandre.belloni@free-electrons.com> (raw)
In-Reply-To: <1426283844-463-1-git-send-email-alexandre.belloni@free-electrons.com>

Drop AT91_TIMER_HZ as this can be handled using HZ_FIXED. Initial help message
was:

On AT91rm9200 chips where you're using a system clock derived
from the 32768 Hz hardware clock, this tick rate should divide
it exactly: use a power-of-two value, such as 128 or 256, to
reduce timing errors caused by rounding.

Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
---
 arch/arm/Kconfig           |  2 +-
 arch/arm/mach-at91/Kconfig | 18 ------------------
 2 files changed, 1 insertion(+), 19 deletions(-)

diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig
index a1d153098001..8d5c4f9c15f9 100644
--- a/arch/arm/Kconfig
+++ b/arch/arm/Kconfig
@@ -1502,7 +1502,7 @@ config HZ_FIXED
 	int
 	default 200 if ARCH_EBSA110 || ARCH_S3C24XX || \
 		ARCH_S5PV210 || ARCH_EXYNOS4
-	default AT91_TIMER_HZ if ARCH_AT91
+	default 128 if SOC_AT91RM9200
 	default SHMOBILE_TIMER_HZ if ARCH_SHMOBILE_LEGACY
 	default 0
 
diff --git a/arch/arm/mach-at91/Kconfig b/arch/arm/mach-at91/Kconfig
index 4662eae06753..da977699c037 100644
--- a/arch/arm/mach-at91/Kconfig
+++ b/arch/arm/mach-at91/Kconfig
@@ -100,22 +100,4 @@ config SOC_SAMA5
 	select SOC_SAM_V7
 	select SRAM if PM
 
-comment "Atmel SoCs Feature Selections"
-
-config AT91_TIMER_HZ
-	int "Kernel HZ (jiffies per second)"
-	range 32 1024
-	depends on ARCH_AT91
-	default "128" if SOC_AT91RM9200
-	default "100"
-	help
-	  On AT91rm9200 chips where you're using a system clock derived
-	  from the 32768 Hz hardware clock, this tick rate should divide
-	  it exactly: use a power-of-two value, such as 128 or 256, to
-	  reduce timing errors caused by rounding.
-
-	  On AT91sam926x chips, or otherwise when using a higher precision
-	  system clock (of at least several MHz), rounding is less of a
-	  problem so it can be safer to use a decimal values like 100.
-
 endif
-- 
2.1.0


  parent reply	other threads:[~2015-03-13 21:58 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-03-13 21:57 [PATCH v3 0/7] Switch mach-at91 to multiplatform Alexandre Belloni
2015-03-13 21:57 ` [PATCH v3 1/7] ARM: at91: switch " Alexandre Belloni
2015-03-13 21:57 ` [PATCH v3 2/7] ARM: at91: switch at91_dt_defconfig " Alexandre Belloni
2015-03-13 21:57 ` [PATCH v3 3/7] ARM: at91: remove unused headers Alexandre Belloni
2015-03-13 21:57 ` [PATCH v3 4/7] ARM: at91: remove useless mach/cpu.h Alexandre Belloni
2015-03-13 21:57 ` [PATCH v3 5/7] ARM: at91: remove SoC headers Alexandre Belloni
2015-03-13 21:57 ` [PATCH v3 6/7] ARM: at91: remove hardware.h Alexandre Belloni
2015-03-13 21:57 ` Alexandre Belloni [this message]
2015-03-13 22:04 ` [PATCH v3 0/7] Switch mach-at91 to multiplatform Alexandre Belloni
2015-03-14 10:23 ` Arnd Bergmann
2015-03-14 13:58   ` Alexandre Belloni

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=1426283844-463-8-git-send-email-alexandre.belloni@free-electrons.com \
    --to=alexandre.belloni@free-electrons.com \
    --cc=arnd@arndb.de \
    --cc=boris.brezillon@free-electrons.com \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=nicolas.ferre@atmel.com \
    --cc=plagnioj@jcrosoft.com \
    /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: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).