printk: update log_buf_copy for 3.3
Colin Cross [Thu, 2 Feb 2012 00:02:23 +0000 (16:02 -0800)]
logbuf_lock is a raw spinlock in 3.3, replace spin_(un)lock_irq
with raw_spin_(un)lock_irq.

Change-Id: I4b13c6a34bcbcbe95ef28ac3aec0528deef7fa9d
Signed-off-by: Colin Cross <ccross@android.com>

kernel/printk.c

index fbf7573..7a8b101 100644 (file)
@@ -322,7 +322,7 @@ int log_buf_copy(char *dest, int idx, int len)
        bool took_lock = false;
 
        if (!oops_in_progress) {
-               spin_lock_irq(&logbuf_lock);
+               raw_spin_lock_irq(&logbuf_lock);
                took_lock = true;
        }
 
@@ -339,7 +339,7 @@ int log_buf_copy(char *dest, int idx, int len)
        }
 
        if (took_lock)
-               spin_unlock_irq(&logbuf_lock);
+               raw_spin_unlock_irq(&logbuf_lock);
 
        return ret;
 }