sched/headers: Move 'struct pacct_struct' and 'struct cpu_itimer' form <linux/sched...
authorIngo Molnar <mingo@kernel.org>
Thu, 2 Feb 2017 11:06:10 +0000 (12:06 +0100)
committerIngo Molnar <mingo@kernel.org>
Fri, 3 Mar 2017 00:43:38 +0000 (01:43 +0100)
These structures are actually part of 'struct signal', so move them to <linux/sched/signal.h>
where they belong.

This further decreases the size and complexity of <linux/sched.h>.

Acked-by: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Mike Galbraith <efault@gmx.de>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: linux-kernel@vger.kernel.org
Signed-off-by: Ingo Molnar <mingo@kernel.org>
include/linux/sched.h
include/linux/sched/signal.h

index 8a1d296c53a0f49b485489350950f2a4ab72c339..8bf111efe98e413caa5777e289ff9a6a9616e8a6 100644 (file)
@@ -326,19 +326,6 @@ arch_get_unmapped_area_topdown(struct file *filp, unsigned long addr,
 static inline void arch_pick_mmap_layout(struct mm_struct *mm) {}
 #endif
 
-struct pacct_struct {
-       int                     ac_flag;
-       long                    ac_exitcode;
-       unsigned long           ac_mem;
-       u64                     ac_utime, ac_stime;
-       unsigned long           ac_minflt, ac_majflt;
-};
-
-struct cpu_itimer {
-       u64 expires;
-       u64 incr;
-};
-
 /**
  * struct prev_cputime - snaphsot of system and user cputime
  * @utime: time spent in user mode
index 53fe5450f431f91b236112ff5d07b94b29aea5f7..30e7ceed3ef62d35b4c0d1ca4191d2f373ab80b7 100644 (file)
@@ -19,6 +19,22 @@ struct sighand_struct {
        wait_queue_head_t       signalfd_wqh;
 };
 
+/*
+ * Per-process accounting stats:
+ */
+struct pacct_struct {
+       int                     ac_flag;
+       long                    ac_exitcode;
+       unsigned long           ac_mem;
+       u64                     ac_utime, ac_stime;
+       unsigned long           ac_minflt, ac_majflt;
+};
+
+struct cpu_itimer {
+       u64 expires;
+       u64 incr;
+};
+
 /*
  * NOTE! "signal_struct" does not have its own
  * locking, because a shared signal_struct always