Thread (11 messages) flat view 11 messages, 3 authors, 2014-01-23
DORMANTno replies

Revision v7 of 9 in this series.

Revisions (9)
  1. v7 [diff vs current]
  2. v7 [diff vs current]
  3. v7 [diff vs current]
  4. v7 current
  5. v9 [diff vs current]
  6. v9 [diff vs current]
  7. v9 [diff vs current]
  8. v9 [diff vs current]
  9. v10 [diff vs current]

[PATCH 1/6] arm64: Add macros to manage processor debug state

From: Will Deacon <hidden>
Date: 2014-01-23 09:57:42

On Thu, Jan 23, 2014 at 04:46:36AM +0000, Vijay Kilari wrote:
On Wed, Jan 22, 2014 at 11:01 PM, Will Deacon [off-list ref] wrote:
quoted
quoted
diff --git a/arch/arm64/kernel/debug-monitors.c b/arch/arm64/kernel/debug-monitors.c
index 23586bd..774ad04 100644
--- a/arch/arm64/kernel/debug-monitors.c
+++ b/arch/arm64/kernel/debug-monitors.c
@@ -51,7 +51,7 @@ u8 debug_monitors_arch(void)
 static void mdscr_write(u32 mdscr)
 {
      unsigned long flags;
-     local_dbg_save(flags);
+     flags = local_dbg_save();
Why are you changing the API? This is now pointlessly different to irqs.
To be in line with arch_local_irq_save & arch_local_save_flags in irqflags.h,
I moved this macros into functions and accordingly changed the caller.
I could not find any code using this local_dbg_{save, restore} except
from debug-monitors.c file

If required, I can think of renaming local_dbg_{save,restore} as
local_dbg_{save,restore}_flags
No, I'd rather local_dbg_{save, restore} were aligned with local_irq_{save,
restore} (as defined in include/linux/irqflags.h).

Will
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help