Re: [PATCH 1/3] sched: define a function to report the number of context switches on a CPU

From: Peter Zijlstra
Date: Tue Aug 20 2019 - 05:39:03 EST


On Mon, Aug 19, 2019 at 11:14:27PM -0700, longli@xxxxxxxxxxxxxxxxx wrote:
> From: Long Li <longli@xxxxxxxxxxxxx>
>
> The number of context switches on a CPU is useful to determine how busy this
> CPU is on processing IRQs. Export this information so it can be used by device
> drivers.

Please do explain that; because I'm not seeing how number of switches
relates to processing IRQs _at_all_!