From 3e13331e68d879272e6a81f2a3a14e9df54da06c Mon Sep 17 00:00:00 2001 From: "David S. Miller" Date: Tue, 13 Apr 2010 01:50:43 -0700 Subject: [PATCH] --- yaml --- r: 189881 b: refs/heads/master c: c011f80ba0912486fe51dd2b3f71d9b33a151188 h: refs/heads/master i: 189879: 00b372aa1f02ea9ef0564963f94217eb686bc386 v: v3 --- [refs] | 2 +- trunk/arch/sparc/include/asm/irqflags_64.h | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/[refs] b/[refs] index f9e34332c8da..acb50034df8a 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 9343af084c7e8911897b0883042ee690cee3aaef +refs/heads/master: c011f80ba0912486fe51dd2b3f71d9b33a151188 diff --git a/trunk/arch/sparc/include/asm/irqflags_64.h b/trunk/arch/sparc/include/asm/irqflags_64.h index a16e94c4b149..bfa1ea45b4cd 100644 --- a/trunk/arch/sparc/include/asm/irqflags_64.h +++ b/trunk/arch/sparc/include/asm/irqflags_64.h @@ -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"