Browse Source

local_t: Move local.h include to ringbuffer.c and ring_buffer_benchmark.c

ringbuffer*.c are the last users of local.h.

Remove the include from modules.h and add it to ringbuffer files.

Signed-off-by: Christoph Lameter <cl@linux-foundation.org>
Signed-off-by: Tejun Heo <tj@kernel.org>
Christoph Lameter 15 years ago
parent
commit
79615760f3
3 changed files with 2 additions and 1 deletions
  1. 0 1
      include/linux/module.h
  2. 1 0
      kernel/trace/ring_buffer.c
  3. 1 0
      kernel/trace/ring_buffer_benchmark.c

+ 0 - 1
include/linux/module.h

@@ -17,7 +17,6 @@
 #include <linux/moduleparam.h>
 #include <linux/tracepoint.h>
 
-#include <asm/local.h>
 #include <linux/percpu.h>
 #include <asm/module.h>
 

+ 1 - 0
kernel/trace/ring_buffer.c

@@ -20,6 +20,7 @@
 #include <linux/cpu.h>
 #include <linux/fs.h>
 
+#include <asm/local.h>
 #include "trace.h"
 
 /*

+ 1 - 0
kernel/trace/ring_buffer_benchmark.c

@@ -8,6 +8,7 @@
 #include <linux/kthread.h>
 #include <linux/module.h>
 #include <linux/time.h>
+#include <asm/local.h>
 
 struct rb_page {
 	u64		ts;