mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Alan Cox <alan@lxorguk.ukuu.org.uk>
To: andrewm@uow.edu.au (Andrew Morton)
Cc: alan@lxorguk.ukuu.org.uk (Alan Cox), pavel@suse.cz (Pavel Machek),
	teastep@seattlefirewall.dyndns.org (Tom Eastep),
	fd0man@crosswinds.net (Michael B. Trausch),
	jbm@joshisanerd.com (Josh Myer),
	linux-kernel@vger.kernel.org
Subject: Re: [OT] Major Clock Drift
Date: Mon, 12 Feb 2001 09:48:47 +0000 (GMT)	[thread overview]
Message-ID: <E14SFbG-0006WR-00@the-village.bc.nu> (raw)
In-Reply-To: <3A871252.45974FFF@uow.edu.au> from "Andrew Morton" at Feb 11, 2001 10:29:38 PM

> > Why are interrupts being disabled for vesafb scrolling anyway ?
> 
> Console writes happen under spin_lock_irq(console_lock).
> 
> The only reason for this which I can see: the kernel
> can call printk() from interrupt context.

We certainly need to be able to call printk from interrupt context so that
bit is in itself reasonable, but not the cost.

Suppose vesafb did something like this, dropping the printk lock

	if(test_and_set_bit(0, &vesafb_lock))
	{
		if(in_interrupt())
		{
			// remember which bit of the dmesg ring to queue
			queued_writes=1;
			return;
		}
	}
	/* for the re-entry case this will block */
	down(&vesafb_mutex);
again:
	do the usual stuff 
	if(queued_writes)
	{
		dequeue_write_buffer();
		goto again;
	}
	up(&vesafb_mutex);
	clear_bit(0, &vesafb_lock);


	
-
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/

  reply	other threads:[~2001-02-12  9:49 UTC|newest]

Thread overview: 31+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-02-04  4:32 Josh Myer
2001-02-04  4:42 ` Manfred Bartz
2001-02-04 12:56 ` Michael B. Trausch
2001-02-04 15:18   ` Steve Underwood
2001-02-04 15:31   ` Hacksaw
2001-02-04 23:46     ` Alan Chandler
2001-02-04 17:18   ` Tom Eastep
2001-02-04 18:04     ` Hacksaw
2001-02-04 18:07       ` Tom Eastep
2001-02-05 13:25       ` Andrew Morton
2001-02-10 21:58         ` Pavel Machek
2001-02-11 11:05           ` Andrew Morton
2001-02-11 11:06             ` Pavel Machek
2001-02-11 11:47               ` Andrew Morton
2001-02-11 12:14               ` Peter Horton
2001-02-11 13:52             ` Chris Wedgwood
2001-02-05  1:18     ` Michael B. Trausch
2001-02-13  3:00       ` george anzinger
2001-02-13  6:51         ` Josh Myer
2001-02-10 21:58     ` [OT] " Pavel Machek
2001-02-11 17:07       ` Alan Cox
2001-02-11 22:29         ` Andrew Morton
2001-02-12  9:48           ` Alan Cox [this message]
2001-02-12 10:05             ` Andi Kleen
2001-02-12 10:10               ` Alan Cox
2001-02-12 12:14                 ` James Sutherland
2001-02-12 10:32             ` Pavel Machek
2001-02-12 10:36               ` Alan Cox
2001-02-12 11:38                 ` Andrew Morton
2001-02-13  7:24                   ` Abramo Bagnara
2001-02-10 21:55 ` Pavel Machek

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=E14SFbG-0006WR-00@the-village.bc.nu \
    --to=alan@lxorguk.ukuu.org.uk \
    --cc=andrewm@uow.edu.au \
    --cc=fd0man@crosswinds.net \
    --cc=jbm@joshisanerd.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=pavel@suse.cz \
    --cc=teastep@seattlefirewall.dyndns.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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®