Permalink
Browse files

printk: update log_buf_copy for 3.3

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>
  • Loading branch information...
1 parent da8de7a commit 609a71dba026f4fa2899951378abd07d3342e06e @colincross colincross committed Feb 2, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 kernel/printk.c
View
4 kernel/printk.c
@@ -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;
}

0 comments on commit 609a71d

Please sign in to comment.