From: Sergei Shtylyov <sshtylyov@ru.mvista.com>
To: Atsushi Nemoto <anemo@mba.ocn.ne.jp>
Cc: linux-mips@linux-mips.org, ralf@linux-mips.org
Subject: Re: [PATCH] rest of works for migration to GENERIC_TIME
Date: Tue, 24 Oct 2006 17:39:39 +0400 [thread overview]
Message-ID: <453E179B.50205@ru.mvista.com> (raw)
In-Reply-To: <20061024.002127.74752850.anemo@mba.ocn.ne.jp>
Hello.
Atsushi Nemoto wrote:
>>Since we already moved to GENERIC_TIME, we should implement
>>alternatives of old do_gettimeoffset routines to get sub-jiffies
>>resolution from gettimeofday(). This patch includes:
> Take 2. Changes from previous patch are:
> * Update against current git tree.
> * Just fix sb1250_hpt_setup typo.
> * Remove hack from jmr3927_hpt_read, bcm1480_hpt_read and add comments.
> Subject: [PATCH] rest of works for migration to GENERIC_TIME
> Since we already moved to GENERIC_TIME, we should implement
> alternatives of old do_gettimeoffset routines to get sub-jiffies
> resolution from gettimeofday(). This patch includes:
> * MIPS clocksource support (based on works by Manish Lachwani).
> * remove unused gettimeoffset routines and related codes.
> * remove unised 64bit do_div64_32().
> * simplify mips_hpt_init. (no argument needed, __init tag)
It looks like this change might have broken some code...
> * simplify c0_hpt_timer_init. (no need to write to c0_count)
> * remove some hpt_init routines.
> * mips_hpt_mask variable to specify bitmask of hpt value.
> * convert jmr3927_do_gettimeoffset to jmr3927_hpt_read.
> * convert ip27_do_gettimeoffset to ip27_hpt_read.
> * convert bcm1480_do_gettimeoffset to bcm1480_hpt_read.
> * simplify sb1250 hpt functions. (no need to subtract and shift)
> Other than board independent part are not tested. Please test if you
> have those platforms. Thank you.
> diff --git a/arch/mips/dec/time.c b/arch/mips/dec/time.c
> index 4cf0c06..69e424e 100644
> --- a/arch/mips/dec/time.c
> +++ b/arch/mips/dec/time.c
> @@ -160,11 +160,6 @@ static unsigned int dec_ioasic_hpt_read(
> return ioasic_read(IO_REG_FCTR);
> }
>
> -static void dec_ioasic_hpt_init(unsigned int count)
> -{
> - ioasic_write(IO_REG_FCTR, ioasic_read(IO_REG_FCTR) - count);
> -}
> -
>
> void __init dec_time_init(void)
> {
> @@ -174,11 +169,9 @@ void __init dec_time_init(void)
> mips_timer_state = dec_timer_state;
> mips_timer_ack = dec_timer_ack;
>
> - if (!cpu_has_counter && IOASIC) {
> + if (!cpu_has_counter && IOASIC)
> /* For pre-R4k systems we use the I/O ASIC's counter. */
> mips_hpt_read = dec_ioasic_hpt_read;
> - mips_hpt_init = dec_ioasic_hpt_init;
> - }
With mips_hpt_init() handler gone, how the initial value is loaded here?
WBR, Sergei
next prev parent reply other threads:[~2006-10-24 13:40 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-10-22 18:34 [PATCH] rest of works for migration to GENERIC_TIME Atsushi Nemoto
2006-10-22 19:25 ` Sergei Shtylyov
2006-10-23 3:00 ` Atsushi Nemoto
2006-10-23 12:32 ` Sergei Shtylyov
2006-10-23 15:29 ` Atsushi Nemoto
2006-10-23 18:52 ` Sergei Shtylyov
2006-10-23 18:57 ` Sergei Shtylyov
2006-10-23 3:04 ` Atsushi Nemoto
2006-10-23 13:08 ` Ralf Baechle
2006-10-23 16:41 ` mlachwani
2006-10-22 19:39 ` Manish Lachwani
2006-10-23 2:09 ` Atsushi Nemoto
2006-10-23 1:45 ` Atsushi Nemoto
2006-10-23 14:38 ` Sergei Shtylyov
2006-10-23 15:38 ` Atsushi Nemoto
2006-10-23 15:39 ` Sergei Shtylyov
2006-10-23 15:51 ` Atsushi Nemoto
2006-11-11 15:13 ` Atsushi Nemoto
2006-10-23 17:02 ` Sergei Shtylyov
2006-10-23 15:21 ` Atsushi Nemoto
2006-10-24 13:39 ` Sergei Shtylyov [this message]
2006-10-24 15:14 ` Sergei Shtylyov
-- strict thread matches above, loose matches on Subject: below --
2006-10-22 18:30 Atsushi Nemoto
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=453E179B.50205@ru.mvista.com \
--to=sshtylyov@ru.mvista.com \
--cc=anemo@mba.ocn.ne.jp \
--cc=linux-mips@linux-mips.org \
--cc=ralf@linux-mips.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