[RESEND] [PATCH 5/7] ppc: remove cli()/sti() in arch/ppc/platforms/pal4_setup.c

From: James Nelson (james4765_at_cwazy.co.uk)
Date: 01/08/05

  • Next message: William Lee Irwin III: "Re: VM fixes [->used_math to PF_USED_MATH] [6/4]"
    To: linux-kernel@vger.kernel.org, linuxppc-dev@ozlabs.org
    Date:	Sat, 8 Jan 2005 11:04:27 -0600
    
    

    Replace cli() function calls with local_irq_disable() in shutdown/restart code.

    Signed-off-by: James Nelson <james4765@gmail.com>

    diff -urN --exclude='*~' linux-2.6.10-mm1-original/arch/ppc/platforms/pal4_setup.c linux-2.6.10-mm1/arch/ppc/platforms/pal4_setup.c
    --- linux-2.6.10-mm1-original/arch/ppc/platforms/pal4_setup.c 2004-12-24 16:35:28.000000000 -0500
    +++ linux-2.6.10-mm1/arch/ppc/platforms/pal4_setup.c 2005-01-03 19:49:42.123501068 -0500
    @@ -81,7 +81,7 @@
     static void
     pal4_restart(char *cmd)
     {
    - __cli();
    + local_irq_disable();
             __asm__ __volatile__("lis 3,0xfff0\n \
                                   ori 3,3,0x100\n \
                                   mtspr 26,3\n \
    @@ -95,7 +95,7 @@
     static void
     pal4_power_off(void)
     {
    - __cli();
    + local_irq_disable();
             for(;;);
     }
     
    -
    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: William Lee Irwin III: "Re: VM fixes [->used_math to PF_USED_MATH] [6/4]"

    Relevant Pages

    • Re: How Linux becomes Windows
      ... I use lpr, CLI, ... methods work for different people. ... think better with a visual interface. ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx ...
      (Debian-User)
    • Re: [PHP] php cli and mysql
      ... James Tu wrote: ... Why is the CLI looking for it at /var/myslq/mysql.sock? ... will the PHP module with Apache still be ... To unsubscribe, visit: http://www.php.net/unsub.php ...
      (php.general)
    • Re: [PHP] php cli and mysql
      ... James Tu wrote: ... Why is the CLI looking for it at /var/myslq/mysql.sock? ... Do I change the mysql settings so that mysql.sock is at ... To unsubscribe, visit: http://www.php.net/unsub.php ...
      (php.general)
    • Re: [PHP] php cli and mysql
      ... Why is the CLI looking for it at /var/myslq/mysql.sock? ... Do I change the mysql settings so that mysql.sock is at ... PHP General Mailing List ... To unsubscribe, visit: http://www.php.net/unsub.php ...
      (php.general)
    • Re: a few issues with events
      ... have an event that, in one of its handlers, unsubscribes from another ... I coded a short test application just to be sure, and sure enough I can unsubscribe from the event I'm handling. ... static event EventHandler eventTest; ... static void OnTest() ...
      (microsoft.public.dotnet.languages.csharp)