[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20150108132945.31311b10@lxorguk.ukuu.org.uk>
Date: Thu, 8 Jan 2015 13:29:45 +0000
From: One Thousand Gnomes <gnomes@...rguk.ukuu.org.uk>
To: Catalin Marinas <catalin.marinas@....com>
Cc: Linus Torvalds <torvalds@...ux-foundation.org>,
Russell King - ARM Linux <linux@....linux.org.uk>,
"nicolas.pitre@...aro.org" <nicolas.pitre@...aro.org>,
Pavel Machek <pavel@....cz>,
Marc Zyngier <Marc.Zyngier@....com>,
kernel list <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH] Revert 9fc2105aeaaf56b0cf75296a84702d0f9e64437b to fix
pyaudio (and probably more)
On Wed, 7 Jan 2015 15:01:36 +0000
Catalin Marinas <catalin.marinas@....com> wrote:
> On Wed, Jan 07, 2015 at 01:20:06AM +0000, Linus Torvalds wrote:
> > On Tue, Jan 6, 2015 at 3:42 PM, Catalin Marinas <catalin.marinas@....com> wrote:
> > >>
> > >> That's what bogomips *is*, for chrissake! It's a bogus measure of how
> > >> many times you go through the delay loop.
> > >
> > > I think that's where the misunderstanding is. We don't have any idea
> > > how many times we go through the delay loop. We just go through the
> > > delay loop until the counter (driven by an independent frequency)
> > > changes X times.
> >
> > .. and that's exactly what we do on x86 too with the TSC. It's fine.
>
> I may be mistaken but isn't TSC somehow related to the CPU frequency on
> x86?
CPU frequency isn't a constant.
Seriously CPU frequency isn't a useful construct in this discussion. It
too is bogus, so the TSC may be tied to some clock rate but the clock
rate isn't necessarily a constant, and if its a constant its not tied to
the rate your CPU will be issuing instructions at any given point.
The x86 bogomips has a relationship in some cases to the cpu base clock,
but that relationship itself depends on the CPU model.
It's a random nunber. There is broken code out there which breaks if you
don't give it some random number. If you make something up then it
"works" (or is at least no more broken than it was).
I doubt any x86 code would break if we simply printed "1000000" all the
time.
Alan
--
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