[patch 26/43] Rename struct timer_list to struct ktimeout

From: Thomas Gleixner
Date: Wed Nov 30 2005 - 19:04:38 EST


plain text document attachment (ktimeout-struct-base.patch)
- change the main timeout data structure from 'struct timer_list'
to 'struct ktimeout'
- introduce compatibility define for timer_list

Signed-off-by: Ingo Molnar <mingo@xxxxxxx>

include/linux/ktimeout.h | 2 +-
include/linux/timer.h | 7 ++++++-
2 files changed, 7 insertions(+), 2 deletions(-)

Index: linux/include/linux/ktimeout.h
===================================================================
--- linux.orig/include/linux/ktimeout.h
+++ linux/include/linux/ktimeout.h
@@ -8,7 +8,7 @@

struct timer_base_s;

-struct timer_list {
+struct ktimeout {
struct list_head entry;
unsigned long expires;

Index: linux/include/linux/timer.h
===================================================================
--- linux.orig/include/linux/timer.h
+++ linux/include/linux/timer.h
@@ -1,9 +1,14 @@
+/*
+ * This file is a compatibility placeholder - it will go away.
+ */
#ifndef _LINUX_TIMER_H
#define _LINUX_TIMER_H

/*
- * This file is a compatibility placeholder - it will go away.
+ * Compatibility define to turn 'struct timer_list' into 'struct ktimeout':
*/
+#define timer_list ktimeout
+
#include <linux/ktimeout.h>

extern int it_real_fn(void *);

--

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/