Linux APIC中断优先级 [英] Linux APIC interrupts priority

查看:77
本文介绍了Linux APIC中断优先级的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

分配给特定中断的进程有什么作用?例如,我在rt内核上的FF进程的一部分是:

What does process assigned to particular interrupt do? For example part of my FF processes on rt kernel is:

98  FF     95 135   - [irq/23-ehci_hcd]
96  FF     85 125   - [irq/16-uhci_hcd]
94  FF     85 125   - [irq/20-ehci_hcd]
8  FF      1  41   - [rcu_preempt]
56  FF     99 139   - [irq/8-rtc0]

是中断处理程序吗?根据这个主题,如何在Linux中为以太网中断赋予最高优先级linux内核不区分APIC中断的优先级.但是,如果两个中断同时发生怎么办?如果在APIC级别上所有中断都具有相同的优先级,那么处理器如何知道要执行的处理程序?

is it an interrupt handlers? According to this thread, How to give highest priority to ethernet interrupt in linux linux kernel doesn't prioritize APIC interrupts. But what if two interrupt occurs simultaneously? How processor knows what handler to execute, if on APIC level all interrupts are same priority?

在上面的线程链接中,有人建议编写内核模块来获得设置APIC中断优先级的能力.对rt音频处理进行调整是否有用,或者只是将计时器和声卡中断设置为更高的优先级会完成相同的工作?

In thread link above one guy propose to write kernel module get the ability set up APIC interrupt priorities. Will it be useful tweak for rt-audio processing, or just setting timer and audiocard interrupts to higher priority will do the same work?

推荐答案

仅当两个不同的中断挂起时,中断优先级才重要,而CPU必须决定处理哪个中断.

Interrupt priorities matter only when two differents interrupts are pending, and the CPU has to decide which one to handle.

由于中断处理程序非常短,并且具有多个内核,因此优先级不太可能产生任何明显的影响.

With interrupt handlers being very short, and with multiple cores available, it is unlikely that priorities will have any noticeable effect.

(RTC不会用于任何与音频有关的内容.)

(And the RTC is not used for anything audio-related.)

这篇关于Linux APIC中断优先级的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆