lkml.org 
[lkml]   [1998]   [Nov]   [6]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PARPORT] [patch] lp needed testers [Re: lp fix against pre-2.1.127-7]
Date
From
>+ * Obsoleted the CAREFUL flag since a printer that doesn' t work with
>+ * CAREFUL will block a bit after in lp_check_status().

Can you explain this a bit more?

>+ /*
>+ * Be sure that the CPU doesn' t reorder instructions.
>+ * I am not sure if it' s needed also before an outb().
>+ * If not tell me ;-). -arca
>+ */
>+ mb();

An mb() stops the *compiler* from re-ordering things. It doesn't generate any
actual code and so the CPU never sees it. I'm fairly sure that inb() and
outb() are volatile themselves and don't need additional optimisation barriers.

Did adding this mb() fix a problem?

p.



-
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:45    [W:0.294 / U:0.028 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site