public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: William Lee Irwin III <wli@holomorphy.com>
To: Andrew Morton <akpm@osdl.org>
Cc: linux-kernel@vger.kernel.org
Subject: [sched.h 4/8] move struct k_itimer to posix-timers.h
Date: Fri, 24 Sep 2004 20:19:12 -0700	[thread overview]
Message-ID: <20040925031912.GP9106@holomorphy.com> (raw)
In-Reply-To: <20040925030802.GO9106@holomorphy.com>

On Fri, Sep 24, 2004 at 08:08:02PM -0700, William Lee Irwin III wrote:
> CALC_LOAD() is used nowhere but kernel/timer.c; this patch moves it
> there.

struct k_itimer is used nowhere but posix-timers.h; this patch moves it
there.


Index: mm3-2.6.9-rc2/include/linux/posix-timers.h
===================================================================
--- mm3-2.6.9-rc2.orig/include/linux/posix-timers.h	2004-09-12 22:32:27.000000000 -0700
+++ mm3-2.6.9-rc2/include/linux/posix-timers.h	2004-09-24 18:55:19.288557856 -0700
@@ -8,6 +8,8 @@
 	struct list_head list;
 	spinlock_t lock;
 };
+
+struct k_itimer;
 struct k_clock {
 	int res;		/* in nano seconds */
 	struct k_clock_abs *abs_struct;
@@ -23,6 +25,27 @@
 	void (*timer_get) (struct k_itimer * timr,
 			   struct itimerspec * cur_setting);
 };
+
+/* POSIX.1b interval timer structure. */
+struct k_itimer {
+	struct list_head list;		 /* free/ allocate list */
+	spinlock_t it_lock;
+	clockid_t it_clock;		/* which timer type */
+	timer_t it_id;			/* timer id */
+	int it_overrun;			/* overrun on pending signal  */
+	int it_overrun_last;		 /* overrun on last delivered signal */
+	int it_requeue_pending;          /* waiting to requeue this timer */
+	int it_sigev_notify;		 /* notify word of sigevent struct */
+	int it_sigev_signo;		 /* signo word of sigevent struct */
+	sigval_t it_sigev_value;	 /* value word of sigevent struct */
+	unsigned long it_incr;		/* interval specified in jiffies */
+	struct task_struct *it_process;	/* process to send signal to */
+	struct timer_list it_timer;
+	struct sigqueue *sigq;		/* signal queue entry. */
+	struct list_head abs_timer_entry; /* clock abs_timer_list */
+	struct timespec wall_to_prev;   /* wall_to_monotonic used when set */
+};
+
 struct now_struct {
 	unsigned long jiffies;
 };
Index: mm3-2.6.9-rc2/include/linux/sched.h
===================================================================
--- mm3-2.6.9-rc2.orig/include/linux/sched.h	2004-09-24 18:51:25.969027816 -0700
+++ mm3-2.6.9-rc2/include/linux/sched.h	2004-09-24 18:54:45.788650616 -0700
@@ -352,26 +352,6 @@
 struct backing_dev_info;
 struct reclaim_state;
 
-/* POSIX.1b interval timer structure. */
-struct k_itimer {
-	struct list_head list;		 /* free/ allocate list */
-	spinlock_t it_lock;
-	clockid_t it_clock;		/* which timer type */
-	timer_t it_id;			/* timer id */
-	int it_overrun;			/* overrun on pending signal  */
-	int it_overrun_last;		 /* overrun on last delivered signal */
-	int it_requeue_pending;          /* waiting to requeue this timer */
-	int it_sigev_notify;		 /* notify word of sigevent struct */
-	int it_sigev_signo;		 /* signo word of sigevent struct */
-	sigval_t it_sigev_value;	 /* value word of sigevent struct */
-	unsigned long it_incr;		/* interval specified in jiffies */
-	struct task_struct *it_process;	/* process to send signal to */
-	struct timer_list it_timer;
-	struct sigqueue *sigq;		/* signal queue entry. */
-	struct list_head abs_timer_entry; /* clock abs_timer_list */
-	struct timespec wall_to_prev;   /* wall_to_monotonic used when set */
-};
-
 #ifdef CONFIG_SCHEDSTATS
 struct sched_info {
 	/* cumulative counters */

  reply	other threads:[~2004-09-25  3:19 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-09-25  2:45 [sched.h 0/8] sched.h header cleanups vs. 2.6.9-rc2-mm3 William Lee Irwin III
2004-09-25  2:49 ` [sched.h 1/8] nuke itimer_ticks and itimer_next William Lee Irwin III
2004-09-25  2:53   ` [sched.h 2/8] nuke CT_TO_SECS() and CT_TO_USECS() William Lee Irwin III
2004-09-25  3:08     ` [sched.h 3/8] privatize CALC_LOAD() William Lee Irwin III
2004-09-25  3:19       ` William Lee Irwin III [this message]
2004-09-25  3:24         ` [sched.h 5/8] move struct mm_struct to mm.h William Lee Irwin III
2004-09-25  3:26           ` [sched.h 6/8] move aio include " William Lee Irwin III
2004-09-25  3:27             ` [sched.h 7/8] remove rbtree.h inclusion from sched.h William Lee Irwin III
2004-09-25  3:29               ` [sched.h 8/8] move exec_domain declarations to personality.h William Lee Irwin III
2004-09-26  1:56             ` [sched.h 6/8] move aio include to mm.h Arnd Bergmann
2004-09-26  2:06               ` William Lee Irwin III
2004-09-26  2:15                 ` Lee Revell
2004-09-26  2:17                   ` William Lee Irwin III
2004-09-26  3:03                 ` Arnd Bergmann

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20040925031912.GP9106@holomorphy.com \
    --to=wli@holomorphy.com \
    --cc=akpm@osdl.org \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox