From mboxrd@z Thu Jan 1 00:00:00 1970 From: Viresh Kumar Subject: Re: Changing CPU frequency in atomic (schedule / scheduler_tick) Date: Tue, 18 Aug 2015 19:36:01 +0530 Message-ID: <20150818140601.GE31148@linux> References: Mime-Version: 1.0 Return-path: Content-Disposition: inline In-Reply-To: Sender: cpufreq-owner@vger.kernel.org List-ID: Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: Guru Prasad Cc: "cpufreq@vger.kernel.org" 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