Wu Zhangjin wrote:
If the processor support dynamic cpu frequency and the support is
enabled in kernel, this sched_clock() implementation will be broken(and
If the frequency of the MIPS CP0 counter is related to the cpu's
frequency).
So, some extra resitrictions should be added to it.
arch/mips/Kconfig
config CPU_HAS_FIXED_CP0_COUNTER
bool
config SYS_SUPPORTS_HRES_SCHED_CLOCK
bool
depends on CPU_HAS_FIXED_CP0_COUNTER || !CPU_FREQ
arch/mips/kernel/csrc-r4k.c
#ifdef SYS_SUPPORTS_HRES_SCHED_CLOCK
/* The high resolution version of sched_clock() */
#endif
And I'm not sure whether the cavium octeon support dynamic cpu
frequency,
Not currently...
if yes, it's high resolution version of sched_clock() also
should be wrapped with the above macro to ensure it is not broken:
arch/mips/cavium-octeon/csrc-octeon.c
... So this is not applicable.
Regards,
Wu Zhangjin
|