On 06/06/06 11:24 +1000, Herbert Xu wrote: > Jordan Crouse <[EMAIL PROTECTED]> wrote: > > > > Is there any way to differentiate if a crypto API call was made in an > > atomic context or not? The problem here, is that I only have one engine, > > so I need to protect it from multiple processes accessing it at the > > same time. I can get rid of the sleep in an atomic context, but we expect > > to have both atomic and process contexts heavily accessing the engine at > > the same time, we really run the risk of having the atomic contexts fail > > more often then they should due to a process holding the mutex. > > Are there SMP Geode machines?
No - but they can run with preempt turned on - so there's always the risk that we can have two processes in the code at the same time. Jordan -- Jordan Crouse Senior Linux Engineer AMD - Personal Connectivity Solutions Group <www.amd.com/embeddedprocessors> - To unsubscribe from this list: send the line "unsubscribe linux-crypto" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html
