On Mon, 2010-04-05 at 16:08 +0200, Frederic Weisbecker wrote:
So we have a hash-table per-cpu, each event takes a ref on the hash
table, when the thing is empty we free it.
When the event->cpu == -1 (all cpus) we take a ref on all possible cpu's
hash-table (should be online I figure, but that requires adding a
hotplug handler).
Then on event enable/disable we actually add the event to the hash-table
belonging to the cpu the event/task gets scheduled on, since each event
can only ever be active on one cpu.
Right?
So looks good, altough I think we want to do that online/hotplug thing.
--