[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <4B09269B.8070602@ru.mvista.com>
Date: Sun, 22 Nov 2009 14:55:07 +0300
From: Sergei Shtylyov <sshtylyov@...mvista.com>
To: wuzhangjin@...il.com
Cc: Ingo Molnar <mingo@...e.hu>, Ralf Baechle <ralf@...ux-mips.org>,
linux-mips@...ux-mips.org, Thomas Gleixner <tglx@...utronix.de>,
Michal Simek <monstr@...str.eu>, linux-kernel@...r.kernel.org
Subject: Re: [PATCH v2] MIPS: Add a high resolution sched_clock() via cnt32_to_63().
Hello.
Wu Zhangjin wrote:
>>> +static void __maybe_unused setup_sched_clock_update(unsigned long tclk)
>>> +{
>>> + unsigned long data;
>>> +
>>> + data = (0xffffffffUL / tclk / 2 - 2) * HZ;
>>>
>
> Because the MIPS c0 count's frequency is half of the cpu frequency(Hi, Ralf, does every MIPS c0 count meet this feature?),
No, e.g. Alchemy's C0 Count ticks at full CPU speed.
WBR, Sergei
--
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