Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在尝试制作一个新的 CPU 调控器,它会验证线程是否具有每个核心,并且它会为在那一刻拥有更多线程的人提供更多频率,而在下一个程序请求中为该核心提供更少的线程。有没有办法做到这一点?
谢谢。
您将需要查看您正在使用的设备的内核代码。调控器位于 /drivers/cpufreq/cpufreq_.c
您可以从位于该目录中的其他调控器中获取示例。