linux-rt-users.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Protection of critical section in PREEMPT_RT
@ 2013-01-22  3:29 Jacky Lam
  2013-01-22 10:24 ` Stanislav Meduna
  0 siblings, 1 reply; 11+ messages in thread
From: Jacky Lam @ 2013-01-22  3:29 UTC (permalink / raw)
  To: linux-rt-users

Hello all,

It is my first time to use PREEMPT_RT patch. I have a kernel driver
needed to do a indirect register access to a hardware interface. In
past, I use spinlock to protect those code. After turning on
PREEMPT_RT, the driver doesn't work anymore.

I know spinlock is now preemptible, but how can I protect a "really"
critical section in PREEMPT_RT? If it is a bad design, could give me
some tutorial/readings on how to modify my driver?

Thanks very much.

Yours,
Jacky

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2013-02-13 11:31 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-01-22  3:29 Protection of critical section in PREEMPT_RT Jacky Lam
2013-01-22 10:24 ` Stanislav Meduna
2013-01-31  9:27   ` Jacky Lam
2013-01-31 19:52     ` Frank Rowand
2013-02-04  7:27       ` Jacky Lam
2013-02-04 10:40         ` Thomas Gleixner
2013-02-05  1:40           ` Jacky Lam
2013-02-05 10:05             ` Thomas Gleixner
2013-02-06  1:59               ` Jacky Lam
2013-02-06  8:56                 ` Stanislav Meduna
2013-02-13 11:31                 ` Thomas Gleixner

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).