Hello, Peter.
On 03/11/2010 04:25 AM, Peter Zijlstra wrote:
The distinction would be diabling of IRQ on each CPU.
hog_[one_]cpu[s]() schedule highest priority task to, well, hog the
cpu but doesn't affect contextless part of the cpu (irq, bh, whatnot).
In that sense, it is the lowest bottom of upper half but not quite
stopping the cpu and I think the distinction is rather important to
make. With the proposed preemption disabling around the callback, it
pretty much behaves like a complete hog too.
I wanted to avoid verbs associatffed with the traditional workqueue -
schedule and queue, while emphasizing that this is something that you
don't want to abuse - so the verb hog. monopolize_cpu() was the
second choice but hog is shorter, sweeter and can also be used as a
noun as-is, so I chose hog.
So, those were my rationales. What do you think?
Thanks.
--
tejun
--