lkml.org 
[lkml]   [1999]   [Sep]   [25]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: Oops in cgsixfb.c, SparcStation 20/SMP [2.2.12] (fixed, patch)


On Fri, 24 Sep 1999, Chris Noe wrote:

> Question: I used the irqsave/restore versions of the spinlocks to err on
> the side of caution. How can I tell in which sections I can use the
> non-irq versions? And the only reason to do that anyway would be speed,
> correct? From my reading of spinlocks.txt, it's "only when interrupts are
> disabled" to avoid recursing on the same lock. How can I tell if
> interrupts are disabled when someone enters the cg6 fb code?

Let me rephrase that because it sounds horrible: From my reading of
spinlocks.txt, it's "only when the spinlock isn't toyed with in an
interrupt context" that the non-irq versions can be used ... How can I
tell if I'm in an interrupt context when, for example,
drivers/video/cgsixfb.c: cg6_putcs() is called?

Thanks.

Chris Noe
(stiker@northlink.com)


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

\
 
 \ /
  Last update: 2005-03-22 13:54    [W:0.134 / U:0.064 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site