| To: | Sergei Shtylyov <sshtylyov@ru.mvista.com> |
|---|---|
| Subject: | Re: [PATCH v5] MIPS: Add a high resolution sched_clock() via cnt32_to_63(). |
| From: | Sergei Shtylyov <sshtylyov@ru.mvista.com> |
| Date: | Thu, 26 Nov 2009 21:15:39 +0300 |
| Cc: | Wu Zhangjin <wuzhangjin@gmail.com>, Ralf Baechle <ralf@linux-mips.org>, Ingo Molnar <mingo@elte.hu>, Thomas Gleixner <tglx@linutronix.de>, linux-mips@linux-mips.org, Michal Simek <monstr@monstr.eu> |
| In-reply-to: | <4B0A8A0B.60405@ru.mvista.com> |
| Organization: | MontaVista Software Inc. |
| Original-recipient: | rfc822;linux-mips@linux-mips.org |
| References: | <39b95d02b37cd75d275b231c31abb00aefda9078.1258972025.git.wuzhangjin@gmail.com> <4B0A8A0B.60405@ru.mvista.com> |
| Sender: | linux-mips-bounce@linux-mips.org |
| User-agent: | Mozilla/5.0 (X11; U; Linux i686; rv:1.7.2) Gecko/20040803 |
Hello, I wrote: From: Wu Zhangjin <wuzhangjin@gmail.com> (This v5 revision incorporates with the feedbacks from Ingo.) This patch adds a cnt32_to_63() and MIPS c0 count based sched_clock(), which provides high resolution. and also, one new kernel option (HR_SCHED_CLOCK) is added to enable/disable this sched_clock(). Without it, the Ftrace for MIPS will give useless timestamp information. Because cnt32_to_63() needs to be called at least once per half period to work properly, Differ from the old version, this v2 revision set up a kernel timer to ensure the requirement of some MIPSs which have short c0 count period. Signed-off-by: Wu Zhangjin <wuzhangjin@gmail.com> diff --git a/arch/mips/kernel/csrc-r4k-hres.c b/arch/mips/kernel/csrc-r4k-hres.cnew file mode 100644 index 0000000..2fe8be7 --- /dev/null +++ b/arch/mips/kernel/csrc-r4k-hres.cI don't think this is really good name for this file (one might think that this is another implementation of clocksource instead of some sched_clock() code tied to this particular clocksource), and I don't Seriously, if this file have to live a life of its own, name it like sched-r4k.c but not the way you named it -- this is not another clocksource module... WBR, Sergei |
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: [urgent] [loongson] YeeLoong-2F: Add missing macros for EC, Ralf Baechle |
|---|---|
| Next by Date: | Re: problem bring up initramfs and busybox, myuboot |
| Previous by Thread: | Re: [PATCH v5] MIPS: Add a high resolution sched_clock() via cnt32_to_63()., Ingo Molnar |
| Next by Thread: | Re: [PATCH v5] MIPS: Add a high resolution sched_clock() via cnt32_to_63()., Wu Zhangjin |
| Indexes: | [Date] [Thread] [Top] [All Lists] |