From: Josh Boyer <jwboyer@linux.vnet.ibm.com>
To: paulus@samba.org
Cc: linuxppc-dev@ozlabs.org
Subject: [patch 06/10] 40x decrementer fixes
Date: Fri, 03 Aug 2007 11:09:06 -0500 [thread overview]
Message-ID: <20070803161710.931656000@linux.vnet.ibm.com> (raw)
In-Reply-To: <20070803160900.069522000@linux.vnet.ibm.com>>
Allow generic_calibrate_decr to work for 40x platforms. Given that the hardware
behavior is identical, this also changes the set_dec function to reload the PIT
on 40x to match the behavior 44x currently has.
Signed-off-by: Josh Boyer <jwboyer@linux.vnet.ibm.com>
---
arch/powerpc/kernel/time.c | 2 +-
include/asm-powerpc/time.h | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
--- linux-2.6.orig/arch/powerpc/kernel/time.c
+++ linux-2.6/arch/powerpc/kernel/time.c
@@ -867,7 +867,7 @@ void __init generic_calibrate_decr(void)
"(not found)\n");
}
-#ifdef CONFIG_BOOKE
+#if defined(CONFIG_BOOKE) || defined(CONFIG_40x)
/* Set the time base to zero */
mtspr(SPRN_TBWL, 0);
mtspr(SPRN_TBWU, 0);
--- linux-2.6.orig/include/asm-powerpc/time.h
+++ linux-2.6/include/asm-powerpc/time.h
@@ -174,7 +174,7 @@ static inline unsigned int get_dec(void)
static inline void set_dec(int val)
{
#if defined(CONFIG_40x)
- return; /* Have to let it auto-reload */
+ mtspr(SPRN_PIT, val);
#elif defined(CONFIG_8xx_CPU6)
set_dec_cpu6(val);
#else
--
next prev parent reply other threads:[~2007-08-03 16:33 UTC|newest]
Thread overview: 43+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-08-03 16:09 [patch 00/10] 4xx patch series for 2.6.24 Josh Boyer
2007-08-03 16:09 ` [patch 01/10] Rename 4xx paths to 40x Josh Boyer
2007-08-03 16:09 ` [patch 02/10] 4xx Kconfig cleanup Josh Boyer
2007-08-04 7:45 ` David Gibson
2007-08-06 12:31 ` Josh Boyer
2007-08-07 3:06 ` David Gibson
2007-08-03 16:09 ` [patch 03/10] Rename 44x bootwrapper Josh Boyer
2007-08-06 4:36 ` David Gibson
2007-08-03 16:09 ` [patch 04/10] 4xx bootwrapper reworks Josh Boyer
2007-08-06 4:38 ` David Gibson
2007-08-06 12:36 ` Josh Boyer
2007-08-07 3:05 ` David Gibson
2007-08-07 13:10 ` Josh Boyer
2007-08-08 1:19 ` David Gibson
2007-08-03 16:09 ` [patch 05/10] 40x MMU Josh Boyer
2007-08-06 4:34 ` David Gibson
2007-08-03 16:09 ` Josh Boyer [this message]
2007-08-03 16:47 ` [patch 06/10] 40x decrementer fixes Sergei Shtylyov
2007-08-03 17:10 ` Sergei Shtylyov
2007-08-03 17:25 ` Josh Boyer
2007-08-03 17:30 ` Sergei Shtylyov
2007-08-03 17:30 ` Josh Boyer
2007-08-03 17:35 ` Sergei Shtylyov
2007-08-04 2:28 ` Benjamin Herrenschmidt
2007-08-05 14:12 ` Sergei Shtylyov
2007-08-03 17:15 ` Josh Boyer
2007-08-03 17:25 ` Sergei Shtylyov
2007-08-04 2:28 ` Benjamin Herrenschmidt
2007-08-05 14:19 ` Sergei Shtylyov
2007-08-03 16:09 ` [patch 07/10] Fix 40x build Josh Boyer
2007-08-06 4:39 ` David Gibson
2007-08-03 16:09 ` [patch 08/10] Bamboo DTS Josh Boyer
2007-08-06 4:53 ` David Gibson
2007-08-06 18:01 ` Jon Loeliger
2007-08-06 18:05 ` Josh Boyer
2007-08-07 13:11 ` Josh Boyer
2007-08-03 16:09 ` [patch 09/10] Bamboo board support Josh Boyer
2007-08-06 4:55 ` David Gibson
2007-08-03 16:09 ` [patch 10/10] Bamboo zImage wrapper Josh Boyer
2007-08-06 5:00 ` David Gibson
2007-08-06 12:39 ` Josh Boyer
2007-08-07 3:04 ` David Gibson
2007-08-07 3:04 ` David Gibson
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=20070803161710.931656000@linux.vnet.ibm.com \
--to=jwboyer@linux.vnet.ibm.com \
--cc=linuxppc-dev@ozlabs.org \
--cc=paulus@samba.org \
/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).