zoukankan      html  css  js  c++  java
  • Linux绑定硬件IRQ到指定SOC的CPU核

    1:我们可以通过如下命令cat /proc/interrupts来获取当前IRQ对应CPU核心的情况

    2:执行 echo "2" > /proc/irq/8/smp_affinity

      8:我们要绑定的中断号

        2:代表CPU1

     Binary          Hex

    CPU0                  0000 0001        1

    CPU1                  0000 0010        2

    CPU2                  0000 0100        4

    CPU3                  0000 1000        8

    CPU4                  0001 0000       10

    CPU5                  0010 0000       20

    CPU6                  0100 0000       40

    CPU7                  1000 0000       80

    3:cat /proc/interrupts 确认是否绑定成功

  • 相关阅读:
    settTimeout vs setInterval
    JS继承
    JS创建对象
    原型链
    开始学习python的感受
    Problem 29
    Python 查看关键字
    Problem 21
    Problem 34
    Problem 42
  • 原文地址:https://www.cnblogs.com/zongfanstudy/p/13529261.html
Copyright © 2011-2022 走看看