Re: [PATCH] RFC: nomadik: expand timesource to 63 bits

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: john stultz
Date: Thursday, November 11, 2010 - 2:33 pm

On Thu, Nov 11, 2010 at 1:05 AM, Linus Walleij
<linus.walleij@stericsson.com> wrote:
[snip]

I would advise against expanding the hardware counter to 63bits via
software at the clocksource layer. This breaks the
CLOCK_SOURCE_IS_CONTINUOUS flag rule (since the hardware will wrap
below the mask value if not updated in the software layer). And as
Thomas said, this will cause problems in the nohz idle limiting code
(which makes sure we wake up before the clocksource wraps).

Instead, I'd use this extension at the sched_clock level, where it
seems reasonable that it will be called frequently enough to not brake
the cnt32_to_63 magic.

thanks
-john
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH] RFC: nomadik: expand timesource to 63 bits, Linus Walleij, (Thu Nov 11, 2:05 am)
Re: [PATCH] RFC: nomadik: expand timesource to 63 bits, Thomas Gleixner, (Thu Nov 11, 3:16 am)
Re: [PATCH] RFC: nomadik: expand timesource to 63 bits, Linus Walleij, (Thu Nov 11, 3:31 am)
Re: [PATCH] RFC: nomadik: expand timesource to 63 bits, Thomas Gleixner, (Thu Nov 11, 4:05 am)
Re: [PATCH] RFC: nomadik: expand timesource to 63 bits, Nicolas Pitre, (Thu Nov 11, 11:31 am)
Re: [PATCH] RFC: nomadik: expand timesource to 63 bits, Thomas Gleixner, (Thu Nov 11, 12:00 pm)
Re: [PATCH] RFC: nomadik: expand timesource to 63 bits, Nicolas Pitre, (Thu Nov 11, 12:19 pm)
Re: [PATCH] RFC: nomadik: expand timesource to 63 bits, john stultz, (Thu Nov 11, 2:33 pm)
Re: [PATCH] RFC: nomadik: expand timesource to 63 bits, Linus Walleij, (Fri Nov 12, 2:43 am)
Re: [PATCH] RFC: nomadik: expand timesource to 63 bits, Uwe Kleine-König, (Fri Nov 12, 2:57 am)
Re: [PATCH] RFC: nomadik: expand timesource to 63 bits, Linus Walleij, (Fri Nov 12, 3:08 am)
Re: [PATCH] RFC: nomadik: expand timesource to 63 bits, Thomas Gleixner, (Fri Nov 12, 3:31 am)
Re: [PATCH] RFC: nomadik: expand timesource to 63 bits, Linus Walleij, (Fri Nov 12, 3:37 am)
Re: [PATCH] RFC: nomadik: expand timesource to 63 bits, Thomas Gleixner, (Fri Nov 12, 4:08 am)
Re: [PATCH] RFC: nomadik: expand timesource to 63 bits, Nicolas Pitre, (Fri Nov 12, 12:15 pm)
Re: [PATCH] RFC: nomadik: expand timesource to 63 bits, Nicolas Pitre, (Fri Nov 12, 12:18 pm)
Re: [PATCH] RFC: nomadik: expand timesource to 63 bits, john stultz, (Fri Nov 12, 1:22 pm)