Re: Changing CPU frequency in atomic (schedule / scheduler_tick)

Viresh Kumar <[email protected]> Tue, 18 Aug 2015 19:36:01 +0530
Newsgroups org.kernel.vger.cpufreq
Message-ID <20150818140601.GE31148@linux>
On 18-08-15, 09:05, Guru Prasad wrote:
> I don't think this will allow me to have a per-process frequency setting.
> 
> The problem I see with this approach is that, the scheduled work is
> run in its own context, which means there will be a context switch.
> When this happens, another instance of the work will be scheduled
> (from schedule() ). I imagine I would need a conditional call to
> schedule_work(). Something like:
> if(!is_kthread(next))
>     schedule_work(...);

There is work in progress on what you are looking for, look for this
thread:

http://marc.info/?l=linux-kernel&m=143077749912612
-- 
viresh