Re: [PATCH RFC] pm_qos_requirement might sleep

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: mark gross
Date: Thursday, August 14, 2008 - 8:52 am

On Wed, Aug 13, 2008 at 10:24:54AM +0200, John Kacur wrote:

snip

 
I was confused about this point, as I thought I saw raw_spinlock defined
in the mainline tree.



thanks, 

Ok, see below for Acked-by: line.


This code is doing list deletions, insertions and walks / element
updates in a multi threaded environment where many processes on many
CPU's can be adding removing and updating PM_QOS request, a lot (tm).

So I think I still need to locking for the list walking and list element
updating code on face value.  I'm not supper good with lists, perhaps
there is a trick to protecting the lists better than the way I'm doing
it. 

Keeping a lock around the different "target_value"s may not be so
important.  Its just a 32bit scaler value, and perhaps we can make it an
atomic type?  That way we loose the raw_spinlock.

Acked-by: mark gross <mgross@linux.intel.com>



Actually, the target is only getting read by CPUIDLE from idle.  It
shouldn't get changed from the idle context.

--mgross


--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH RFC] pm_qos_requirement might sleep, John Kacur, (Mon Aug 4, 1:52 pm)
Re: [PATCH RFC] pm_qos_requirement might sleep, Peter Zijlstra, (Tue Aug 5, 12:25 am)
Re: [PATCH RFC] pm_qos_requirement might sleep, mark gross, (Tue Aug 5, 1:49 pm)
Re: [PATCH RFC] pm_qos_requirement might sleep, Peter Zijlstra, (Tue Aug 5, 2:09 pm)
Re: [PATCH RFC] pm_qos_requirement might sleep, John Kacur, (Tue Aug 5, 3:18 pm)
Re: [PATCH RFC] pm_qos_requirement might sleep, John Kacur, (Mon Aug 11, 6:25 am)
Re: [PATCH RFC] pm_qos_requirement might sleep, mark gross, (Tue Aug 12, 3:49 pm)
Re: [PATCH RFC] pm_qos_requirement might sleep, John Kacur, (Wed Aug 13, 1:24 am)
Re: [PATCH RFC] pm_qos_requirement might sleep, mark gross, (Thu Aug 14, 8:52 am)
Re: [PATCH RFC] pm_qos_requirement might sleep, Peter Zijlstra, (Thu Aug 14, 10:48 am)
Re: [PATCH RFC] pm_qos_requirement might sleep, John Kacur, (Thu Aug 14, 3:51 pm)
Re: [PATCH RFC] pm_qos_requirement might sleep, mark gross, (Wed Aug 20, 12:14 pm)
Re: [PATCH RFC] pm_qos_requirement might sleep, mark gross, (Mon Aug 25, 9:34 am)
Re: [PATCH RFC] pm_qos_requirement might sleep, Peter Zijlstra, (Mon Aug 25, 9:35 am)
Re: [PATCH RFC] pm_qos_requirement might sleep, John Kacur, (Tue Aug 26, 1:48 am)
Re: [PATCH RFC] pm_qos_requirement might sleep, mark gross, (Tue Aug 26, 9:18 am)
Re: [PATCH RFC] pm_qos_requirement might sleep, John Kacur, (Tue Aug 26, 10:45 am)
Re: [PATCH RFC] pm_qos_requirement might sleep, mark gross, (Thu Aug 28, 12:38 pm)
Re: [PATCH RFC] pm_qos_requirement might sleep, mark gross, (Thu Aug 28, 12:44 pm)
Re: [PATCH RFC] pm_qos_requirement might sleep, Andrew Morton, (Thu Aug 28, 5:32 pm)
Re: [PATCH RFC] pm_qos_requirement might sleep, John Kacur, (Thu Aug 28, 11:31 pm)
Re: [PATCH RFC] pm_qos_requirement might sleep, Steven Rostedt, (Fri Aug 29, 7:29 am)