Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1152699
  • 博文数量: 241
  • 博客积分: 10
  • 博客等级: 民兵
  • 技术积分: 2279
  • 用 户 组: 普通用户
  • 注册时间: 2012-11-27 19:53
个人简介

JustForFun

文章分类

全部博文(241)

文章存档

2023年(8)

2022年(2)

2021年(3)

2020年(30)

2019年(11)

2018年(27)

2017年(54)

2016年(83)

2015年(23)

我的朋友

分类: LINUX

2017-11-30 10:27:35

 内核开启高精度hrtimer定时器配置
 Kernel Features  --->
     [*] High Resolution Timer Support     
     [*] Use local timer interrupts
 [ ] Tickless System (Dynamic Ticks) 这个选项有必要注意一下。


$ vi arch/arm/Kconfig
config LOCAL_TIMERS
        bool "Use local timer interrupts"
        depends on SMP
        default y
        select HAVE_ARM_TWD if (!ARCH_MSM_SCORPIONMP && !EXYNOS4_MCT)
        help
          Enable support for local timers on SMP platforms, rather then the
          legacy IPI broadcast method.  Local timers allows the system
          accounting to be spread across the timer interval, preventing a
          "thundering herd" at every timer tick.


$ vi kernel/time/Kconfig
config HIGH_RES_TIMERS
        bool "High Resolution Timer Support"
        depends on !ARCH_USES_GETTIMEOFFSET && GENERIC_CLOCKEVENTS
        select TICK_ONESHOT
        help
          This option enables high resolution timer support. If your
          hardware is not capable then this option only increases
          the size of the kernel image.






阅读(4569) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~