]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
sparc64: Add some more commentary to __raw_local_irq_save()
authorDavid S. Miller <davem@davemloft.net>
Tue, 13 Apr 2010 08:50:43 +0000 (01:50 -0700)
committerDavid S. Miller <davem@davemloft.net>
Tue, 13 Apr 2010 08:50:43 +0000 (01:50 -0700)
Suggested by Peter Zijlstra

Signed-off-by: David S. Miller <davem@davemloft.net>
arch/sparc/include/asm/irqflags_64.h

index a16e94c4b1494db8cf3d40ef18c56f0180cdf46b..bfa1ea45b4cdb893ee9814e077c9fafdda3daff8 100644 (file)
@@ -80,6 +80,13 @@ static inline unsigned long __raw_local_irq_save(void)
 
        /* Disable interrupts to PIL_NORMAL_MAX unless we already
         * are using PIL_NMI, in which case PIL_NMI is retained.
+        *
+        * The only values we ever program into the %pil are 0,
+        * PIL_NORMAL_MAX and PIL_NMI.
+        *
+        * Since PIL_NMI is the largest %pil value and all bits are
+        * set in it (0xf), it doesn't matter what PIL_NORMAL_MAX
+        * actually is.
         */
        __asm__ __volatile__(
                "rdpr   %%pil, %0\n\t"