From: Michal Simek <monstr@monstr.eu>
To: John Stultz <johnstul@us.ibm.com>
Cc: lkml <linux-kernel@vger.kernel.org>,
Thomas Gleixner <tglx@linutronix.de>
Subject: Re: [PATCH 06/10] microblaze: convert to clocksource_register_hz/khz
Date: Wed, 10 Nov 2010 14:10:46 +0100 [thread overview]
Message-ID: <4CDA99D6.20702@monstr.eu> (raw)
In-Reply-To: <1288642350-1599-7-git-send-email-johnstul@us.ibm.com>
John Stultz wrote:
> This converts the microblaze clocksources to use clocksource_register_hz/khz
>
> This is untested, so any assistance in testing would be appreciated!
>
> CC: Michal Simek <monstr@monstr.eu>
> CC: Thomas Gleixner <tglx@linutronix.de>
> Signed-off-by: John Stultz <johnstul@us.ibm.com>
> ---
> arch/microblaze/kernel/timer.c | 6 +-----
> 1 files changed, 1 insertions(+), 5 deletions(-)
I can't see any problem in it.
Tested-by: Michal Simek <monstr@monstr.eu>
>
> diff --git a/arch/microblaze/kernel/timer.c b/arch/microblaze/kernel/timer.c
> index a5aa33d..68ec7d1 100644
> --- a/arch/microblaze/kernel/timer.c
> +++ b/arch/microblaze/kernel/timer.c
> @@ -217,16 +217,12 @@ static struct clocksource clocksource_microblaze = {
> .rating = 300,
> .read = microblaze_read,
> .mask = CLOCKSOURCE_MASK(32),
> - .shift = 8, /* I can shift it */
> .flags = CLOCK_SOURCE_IS_CONTINUOUS,
> };
>
> static int __init microblaze_clocksource_init(void)
> {
> - clocksource_microblaze.mult =
> - clocksource_hz2mult(timer_clock_freq,
> - clocksource_microblaze.shift);
> - if (clocksource_register(&clocksource_microblaze))
> + if (clocksource_register_hz(&clocksource_microblaze, timer_clock_freq))
> panic("failed to register clocksource");
>
> /* stop timer1 */
--
Michal Simek, Ing. (M.Eng)
w: www.monstr.eu p: +42-0-721842854
Maintainer of Linux kernel 2.6 Microblaze Linux - http://www.monstr.eu/fdt/
Microblaze U-BOOT custodian
next prev parent reply other threads:[~2010-11-10 13:10 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-11-01 20:12 [PATCH 00/10] clocksource_register_khz/hz cleanups (for 2.6.38) John Stultz
2010-11-01 20:12 ` [PATCH 01/10] x86: Convert untested clocksources to clocksource_register_hz/khz John Stultz
2010-11-01 20:12 ` [PATCH 02/10] ia64: convert " John Stultz
2010-11-01 20:12 ` [PATCH 03/10] cris: convert to clocksource_register_khz John Stultz
2010-11-01 20:12 ` [PATCH 04/10] tile: convert to use clocksource_register_hz John Stultz
2010-11-11 21:21 ` Chris Metcalf
2010-11-11 22:06 ` john stultz
2010-11-11 22:22 ` Peter Zijlstra
2010-11-11 23:21 ` john stultz
2010-11-11 22:17 ` john stultz
2010-11-01 20:12 ` [PATCH 05/10] parisc: convert to clocksource_register_hz/khz John Stultz
2010-11-01 20:12 ` [PATCH 06/10] microblaze: " John Stultz
2010-11-10 13:10 ` Michal Simek [this message]
2010-11-01 20:12 ` [PATCH 07/10] avr32: Convert to clocksource_register_hz John Stultz
2010-11-01 20:12 ` [PATCH 08/10] blackfin: convert " John Stultz
2010-11-01 20:12 ` [PATCH 09/10] xtensa: convert to clocksource_register_hz/khz John Stultz
2010-11-01 20:12 ` [PATCH 10/10] sparc: " John Stultz
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=4CDA99D6.20702@monstr.eu \
--to=monstr@monstr.eu \
--cc=johnstul@us.ibm.com \
--cc=linux-kernel@vger.kernel.org \
--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: 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