public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] take #1 report_lost_ticks boot parameter should be default
@ 2006-10-12  1:58 Sergio Monteiro Basto
  0 siblings, 0 replies; only message in thread
From: Sergio Monteiro Basto @ 2006-10-12  1:58 UTC (permalink / raw)
  To: Kernel Mailing List

[-- Attachment #1: Type: text/plain, Size: 2378 bytes --]

Hi,
After begin testing next patches for 2.4.19.  
I tried the 2.6.18-mm3 and I tried boot up with acpi=noirq (which is the
same of pci=noacpi), and boots fine without any warning.
And it was a nightmare on stress testings of this two days. At begging I
don't understand why, but after a while I try remember report_lost_ticks
and nightmare ends. The boot parameter reports lost ticket everywhere,
because I (still) need boot up with "notsc".
I believe that it not just my computer that suffer this problem and with
report_lost_ticks by default, we understand quickly that we need boot
with "notsc" or something else. For computer don't crash on a little
stress. Like play a avi movie with mplyer and copy over Ethernet some
others files.
 
Something like this : 
diff ./x86_64/kernel/time.c.orig ./x86_64/kernel/time.c -up
--- ./x86_64/kernel/time.c.orig 2006-10-12 02:50:41.000000000 +0100
+++ ./x86_64/kernel/time.c      2006-10-12 02:54:52.000000000 +0100
@@ -71,7 +71,7 @@ static unsigned long hpet_period;                     /* f
 unsigned long hpet_tick;                               /* HPET clocks / interrupt */
 int hpet_use_timer;                            /* Use counter of hpet for time keeping, otherwise PIT */
 unsigned long vxtime_hz = PIT_TICK_RATE;
-int report_lost_ticks;                         /* command line option */
+int noreport_lost_ticks;                               /* command line option */
 unsigned long long monotonic_base;

 struct vxtime_data __vxtime __section_vxtime;  /* for vsyscalls */
@@ -316,7 +316,7 @@ static noinline void handle_lost_ticks(i
 {
        static long lost_count;
        static int warned;
-       if (report_lost_ticks) {
+       if (!noreport_lost_ticks) {
                printk(KERN_WARNING "time.c: Lost %d timer tick(s)! ", lost);
                print_symbol("rip %s)\n", regs->rip);
        }
@@ -885,7 +885,7 @@ void __init stop_timer_interrupt(void)

 int __init time_setup(char *str)
 {
-       report_lost_ticks = 1;
+       noreport_lost_ticks = 1;
        return 1;
 }

@@ -1004,7 +1004,7 @@ __init static char *time_init_gtod(void)
        return timetype;
 }

-__setup("report_lost_ticks", time_setup);
+__setup("noreport_lost_ticks", time_setup);

 static long clock_cmos_diff;
 static unsigned long sleep_start;

Thanks,
-- 
Sérgio M.B.

[-- Attachment #2: smime.p7s --]
[-- Type: application/x-pkcs7-signature, Size: 2166 bytes --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2006-10-12  1:58 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-10-12  1:58 [PATCH] take #1 report_lost_ticks boot parameter should be default Sergio Monteiro Basto

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox