From: Pavel Machek <pavel@ucw.cz>
To: alan@redhat.com, kernel list <linux-kernel@vger.kernel.org>
Subject: Kill unneccessary delays from swsusp
Date: Fri, 19 Apr 2002 00:18:58 +0200 [thread overview]
Message-ID: <20020418221858.GA18015@elf.ucw.cz> (raw)
Hi!
This patch kills unneccessary delays from suspend.h. I used them for
debugging and forgot them in. Please apply,
Pavel
--- clean.ac//include/asm-i386/suspend.h Sun Apr 7 10:55:12 2002
+++ linux-swsusp.24/include/asm-i386/suspend.h Fri Apr 19 00:15:41 2002
@@ -123,17 +123,13 @@
int nr = smp_processor_id();
struct tss_struct * t = &init_tss[nr];
- printk("Tss desc..."); mdelay(1000);
set_tss_desc(nr,t); /* This just modifies memory; should not be neccessary. But... This is neccessary, because 386 hardware has concept of busy tsc or some similar stupidity. */
gdt_table[__TSS(nr)].b &= 0xfffffdff;
- printk("Tr..."); mdelay(1000);
load_TR(nr); /* This does ltr */
- printk("LDT..."); mdelay(1000);
load_LDT(current->active_mm); /* This does lldt */
- printk("Debug..."); mdelay(1000);
/*
* Now maybe reload the debug registers
*/
@@ -154,7 +150,6 @@
{
/* restore FPU regs if necessary */
/* Do it out of line so that gcc does not move cr0 load to some stupid place */
- printk("FPU..."); mdelay(1000);
kernel_fpu_end();
}
@@ -223,12 +218,9 @@
asm volatile ("lldt (%0)" :: "m" (saved_context.ldt));
#if 0
- printk("Reloading old TR..."); mdelay(1000);
-
asm volatile ("ltr (%0)" :: "m" (saved_context.tr));
#endif
- printk("Calling fix_processor_context..."); mdelay(1000);
fix_processor_context();
/*
--
(about SSSCA) "I don't say this lightly. However, I really think that the U.S.
no longer is classifiable as a democracy, but rather as a plutocracy." --hpa
reply other threads:[~2002-04-18 22:22 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=20020418221858.GA18015@elf.ucw.cz \
--to=pavel@ucw.cz \
--cc=alan@redhat.com \
--cc=linux-kernel@vger.kernel.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®