mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* console spin_lock
@ 2001-01-17  0:05 James Simmons
  2001-01-17 13:49 ` Andrew Morton
  0 siblings, 1 reply; 7+ messages in thread
From: James Simmons @ 2001-01-17  0:05 UTC (permalink / raw)
  To: Linux Kernel Mailing List; +Cc: FrameBuffer List, Linux console project


Some time ago a intel i810 framebuffer driver was written. It only worked
for 2.2.X. With 2.4.X a spinlock is used in the upper layers of the
console system. Sooner or later we are going to run into the situtation
where we will have graphics hardware which has no vga core and wih be
purely DMA/irq based (i.e i810). In this case using the current
console_lock will block the driver itself. I have thought about a
possible solution. A semaphore can't be used since their is a spin_lock 
in the console_softirq. Since this is in a interrupt context a
semaphore can't be used. Another idea was to do a 

void get_vc_lock(void)
{
        while (test_and_set_bit(0, &vc_var))
                ;
}

Any better ideas?





-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/

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

end of thread, other threads:[~2001-01-19  1:23 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-01-17  0:05 console spin_lock James Simmons
2001-01-17 13:49 ` Andrew Morton
2001-01-17 18:22   ` Roman Zippel
2001-01-17 23:40   ` James Simmons
2001-01-18 12:42     ` Andrew Morton
2001-01-18 21:50       ` Russell King
2001-01-19  1:23       ` James Simmons

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®