[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20090813132316.04f91bb3@skybase>
Date: Thu, 13 Aug 2009 13:23:16 +0200
From: Martin Schwidefsky <schwidefsky@...ibm.com>
To: Linus Walleij <linus.ml.walleij@...il.com>
Cc: linux-kernel@...r.kernel.org, Ingo Molnar <mingo@...e.hu>,
Thomas Gleixner <tglx@...utronix.de>,
john stultz <johnstul@...ibm.com>,
Daniel Walker <dwalker@...o99.com>
Subject: Re: [RFC][patch 10/12] move NTP adjusted clock multiplier to struct
timekeeper
On Thu, 13 Aug 2009 13:15:06 +0200
Linus Walleij <linus.ml.walleij@...il.com> wrote:
> 2009/7/29 Martin Schwidefsky <schwidefsky@...ibm.com>:
>
> > Index: linux-2.6/arch/arm/plat-omap/common.c
> > ===================================================================
> > --- linux-2.6.orig/arch/arm/plat-omap/common.c
> > +++ linux-2.6/arch/arm/plat-omap/common.c
> > @@ -256,7 +256,7 @@ unsigned long long sched_clock(void)
> > unsigned long long ret;
> >
> > ret = (unsigned long long)clocksource_32k.read(&clocksource_32k);
> > - ret = (ret * clocksource_32k.mult_orig) >> clocksource_32k.shift;
> > + ret = (ret * clocksource_32k.mult) >> clocksource_32k.shift;
>
> Doesn't the overall effect of your patch mean that the above can simply be
> replaced by
>
> ret = cyc2ns(&clocksource_32k, ret);
>
> Or clocksource_cyc2ns() if that was renamed (I don't have the entire
> picture here...)
>
> > return ret;
> > }
Yes, you can do that. More specifically it will be
clocksource_cyc2ns(ret, clocksource_32k.mult, clocksource_32k.shift)
after all patches are applied.
--
blue skies,
Martin.
"Reality continues to ruin my life." - Calvin.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists