module programming smp-safety howto?

Emmanuel Michon (emmanuel_michon@realmagic.fr)
10 Apr 2002 12:03:23 +0200


Hi,

I'm responsible for the development of a kernel module for Sigma
Designs EM84xx PCI chips (MPEG2 and MPEG4 hardware decoder
boards). It's working properly now, irq sharing and multiple board
support is ok.

I would like to make it smp-safe.

For instance, I use at a place cli()/restore to implement something that
looks like a critical section (first code path is in a ioctl, second
in a irq top half). I guess this approach is wrong with smp.

Is there some documentation or howto about what changes compared
to non-smp computers?

Maybe a specific kernel module can be considered as a good model?

Sincerely yours,

-- 
Emmanuel Michon
Chef de projet
REALmagic France SAS
Mobile: 0614372733 GPGkeyID: D2997E42  
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/