mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* misused local_irq_disable() in analog.c?
@ 2006-10-11 19:08 Alexey Dobriyan
  2006-10-11 20:17 ` Dmitry Torokhov
  0 siblings, 1 reply; 3+ messages in thread
From: Alexey Dobriyan @ 2006-10-11 19:08 UTC (permalink / raw)
  To: Dmitry Torokhov; +Cc: linux-joystick, linux-kernel

Dmitry, take a look at analog_cooked_read():

do-while loop there contains local_irq_disable()/local_irq_restore(flags);
which aren't complement.

Should it be

    local_irq_save(flags);
    this = gameport_read(gameport) & port->mask;
    GET_TIME(now);
    local_irq_restore(flags);

?

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

end of thread, other threads:[~2006-10-11 20:32 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-10-11 19:08 misused local_irq_disable() in analog.c? Alexey Dobriyan
2006-10-11 20:17 ` Dmitry Torokhov
2006-10-11 20:33   ` Randy Dunlap

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®