Re: [2.6.4-rc2] bogus semicolon behind if()

From: Maciej W. Rozycki (macro_at_ds2.pg.gda.pl)
Date: 03/17/04

  • Next message: Pete Zaitcev: "Re: Wacom USB driver patch"
    Date:	Wed, 17 Mar 2004 18:20:26 +0100 (CET)
    To: Philippe Elie <phil.el@wanadoo.fr>, Thomas Schlichter <thomas.schlichter@web.de>
    
    

    On Wed, 10 Mar 2004, Philippe Elie wrote:

    > > As I wrote a few days ago I have problems with that ChangeSet,
    > > (http://marc.theaimsgroup.com/?l=linux-kernel&m=107840458123059&w=2)
    > > so I did examine it closer.
    >
    > errmm, http://tinyurl.com/2jbe4
    >
    > Maciej, you wrote this patch, any comment ?

     Yep, that's a stupid typo, but the bug would only trigger for a system
    that would have:

    1. a discrete 82489DX APIC,

    2. a functional TSC,

    3. a timer interrupt working through the I/O APIC,

    4. a working I/O APIC NMI watchdog.

    Such systems used to actually exist, but you'd have a hard time trying to
    find one.

     Here's an obvious update. Thomas, thanks for spotting it.

      Maciej

    -- 
    +  Maciej W. Rozycki, Technical University of Gdansk, Poland   +
    +--------------------------------------------------------------+
    +        e-mail: macro@ds2.pg.gda.pl, PGP key available        +
    patch-2.6.4-timer_ack-fix-0
    diff -up --recursive --new-file linux-2.6.4.macro/arch/i386/kernel/io_apic.c linux-2.6.4/arch/i386/kernel/io_apic.c
    --- linux-2.6.4.macro/arch/i386/kernel/io_apic.c	2004-03-17 17:09:29.000000000 +0000
    +++ linux-2.6.4/arch/i386/kernel/io_apic.c	2004-03-17 17:11:07.000000000 +0000
    @@ -2195,7 +2195,7 @@ static inline void check_timer(void)
     				disable_8259A_irq(0);
     				setup_nmi();
     				enable_8259A_irq(0);
    -				if (check_nmi_watchdog() < 0);
    +				if (check_nmi_watchdog() < 0)
     					timer_ack = !cpu_has_tsc;
     			}
     			return;
    @@ -2219,7 +2219,7 @@ static inline void check_timer(void)
     				add_pin_to_irq(0, 0, pin2);
     			if (nmi_watchdog == NMI_IO_APIC) {
     				setup_nmi();
    -				if (check_nmi_watchdog() < 0);
    +				if (check_nmi_watchdog() < 0)
     					timer_ack = !cpu_has_tsc;
     			}
     			return;
    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at  http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at  http://www.tux.org/lkml/
    

  • Next message: Pete Zaitcev: "Re: Wacom USB driver patch"

    Relevant Pages

    • Re: [ACPI] acpi problem with nforce motherboards and ethernet
      ... Maciej W. Rozycki wrote: ... > That's not the right fix. ... Here's a patch I sent ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: [PATCH][2.6] local APIC LVTT init bug
      ... was stated to fix problems on the system involved. ... But the patch disables ... Maciej W. Rozycki, Technical University of Gdansk, Poland + ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: IO-APIC on nforce2 [PATCH] + [PATCH] for nmi_debug=1 + [PATCH] for idle=C1halt, 2.6.5
      ... > patch that was dropped by Linus after appearing in 2.6.3-mm3. ... > that patch gave a virtual wire timer routing which worked well for those ... Maciej W. Rozycki, Technical University of Gdansk, Poland + ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: io_apic & timer_ack fix
      ... Maciej W. Rozycki wrote: ... I 've been running the patch on a 2.4.21 code base. ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • RE: [ACPI] Re: PROBLEM: ACPI freezes 2.6.1 on boot
      ... 0xffffffff explicitly as stated in the manuals (we used to set it to 0xf ... i82489DX does support a flat 32-bit logical destination selection), ... Maciej W. Rozycki, Technical University of Gdansk, Poland + ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)