This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

AM335x运行Linux,如何配置时钟粒度?



一般Linux的一个tick都是为10ms的,因为我们是高实时性应用,计划用OSADL(RT-preempt)补丁提高实时性能。

请问哪位好心人知道如何修改Linux的时钟粒度(tick周期)?

OSADL只是确保任务能够按时切换,倒没找到相关内容。

  • 自己顶一下。

    了解到一般在menuconfig配置目录的Processor type and features ---> Timer frequency (250 HZ)有tick的配置,但是在am335x的内核配置目录没有找到。

    只在"kernel features"里看到一个tickless的选项,后来在“am335x_evm_defconfig”直接搜索到了“CONFIG_HZ=100”。

    如果不能通过menuconfig修改tick频率,要直接修改的话,应该修改哪些地方呢,我找到了3处:

    1.上面提到的是修改“am335x_evm_defconfig”;

    2.“linux-3.2.0-psp04.06.00.11\arch\arm\plat-omap\include\plat”中的timex.h文件里有个定义“#define CLOCK_TICK_RATE (HZ * 100000UL)”;

    3.在“linux-3.2.0-psp04.06.00.11\arch\arm”目录下的kconfig里也有个选项“config HZ”,其中有个“default 100”的值;

    到底应该修改哪里啊?

  • 在“linux-3.2.0-psp04.06.00.11\arch\arm”目录下的kconfig里的选项“config HZ”,修改default值试一下