File tree Expand file tree Collapse file tree 1 file changed +9
-9
lines changed Expand file tree Collapse file tree 1 file changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -281,9 +281,16 @@ extern int __printk_cpu_sync_try_get(void);
281
281
extern void __printk_cpu_sync_wait (void );
282
282
extern void __printk_cpu_sync_put (void );
283
283
284
+ #else
285
+
286
+ #define __printk_cpu_sync_try_get () true
287
+ #define __printk_cpu_sync_wait ()
288
+ #define __printk_cpu_sync_put ()
289
+ #endif /* CONFIG_SMP */
290
+
284
291
/**
285
- * printk_cpu_sync_get_irqsave() - Acquire the printk cpu-reentrant spinning
286
- * lock and disable interrupts .
292
+ * printk_cpu_sync_get_irqsave() - Disable interrupts and acquire the printk
293
+ * cpu-reentrant spinning lock .
287
294
* @flags: Stack-allocated storage for saving local interrupt state,
288
295
* to be passed to printk_cpu_sync_put_irqrestore().
289
296
*
@@ -322,13 +329,6 @@ extern void __printk_cpu_sync_put(void);
322
329
local_irq_restore(flags); \
323
330
} while (0)
324
331
325
- #else
326
-
327
- #define printk_cpu_sync_get_irqsave (flags ) ((void)flags)
328
- #define printk_cpu_sync_put_irqrestore (flags ) ((void)flags)
329
-
330
- #endif /* CONFIG_SMP */
331
-
332
332
extern int kptr_restrict ;
333
333
334
334
/**
You can’t perform that action at this time.
0 commit comments