* Wu Zhangjin <wuzhangjin@xxxxxxxxx> wrote: > From: Wu Zhangjin <wuzhangjin@xxxxxxxxx> > > (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@xxxxxxxxx> > --- > arch/mips/Kconfig | 18 ++++++++++++ > arch/mips/include/asm/time.h | 15 ++++++++++ > arch/mips/kernel/Makefile | 1 + > arch/mips/kernel/csrc-r4k-hres.c | 54 ++++++++++++++++++++++++++++++++++++++ > arch/mips/kernel/csrc-r4k.c | 2 + > 5 files changed, 90 insertions(+), 0 deletions(-) > create mode 100644 arch/mips/kernel/csrc-r4k-hres.c Looks good! Reviewed-by: Ingo Molnar <mingo@xxxxxxx> Thanks, Ingo