[patch 34/43] rename del_ktimeout() to ktimeout_del()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



plain text document attachment (ktimeout-rename-ktimeout_del.patch)
- rename del_ktimeout() to ktimeout_del()

Signed-off-by: Ingo Molnar <[email protected]>

 include/linux/ktimeout.h |    6 +++---
 include/linux/timer.h    |    2 +-
 kernel/ktimeout.c        |   14 +++++++-------
 3 files changed, 11 insertions(+), 11 deletions(-)

Index: linux/include/linux/ktimeout.h
===================================================================
--- linux.orig/include/linux/ktimeout.h
+++ linux/include/linux/ktimeout.h
@@ -61,7 +61,7 @@ static inline int ktimeout_pending(const
 }
 
 extern void ktimeout_add_on(struct ktimeout *ktimeout, int cpu);
-extern int del_ktimeout(struct ktimeout * ktimeout);
+extern int ktimeout_del(struct ktimeout * ktimeout);
 extern int __mod_ktimeout(struct ktimeout *ktimeout, unsigned long expires);
 extern int mod_ktimeout(struct ktimeout *ktimeout, unsigned long expires);
 
@@ -91,8 +91,8 @@ static inline void add_ktimeout(struct k
   extern int try_to_del_ktimeout_sync(struct ktimeout *ktimeout);
   extern int del_ktimeout_sync(struct ktimeout *ktimeout);
 #else
-# define try_to_del_ktimeout_sync(t)	del_ktimeout(t)
-# define del_ktimeout_sync(t)		del_ktimeout(t)
+# define try_to_del_ktimeout_sync(t)	ktimeout_del(t)
+# define del_ktimeout_sync(t)		ktimeout_del(t)
 #endif
 
 #define del_singleshot_ktimeout_sync(t) del_ktimeout_sync(t)
Index: linux/include/linux/timer.h
===================================================================
--- linux.orig/include/linux/timer.h
+++ linux/include/linux/timer.h
@@ -20,7 +20,7 @@
 #define setup_timer			ktimeout_setup
 #define timer_pending			ktimeout_pending
 #define add_timer_on			ktimeout_add_on
-#define del_timer			del_ktimeout
+#define del_timer			ktimeout_del
 #define __mod_timer			__mod_ktimeout
 #define mod_timer			mod_ktimeout
 #define next_timer_interrupt		next_ktimeout_interrupt
Index: linux/kernel/ktimeout.c
===================================================================
--- linux.orig/kernel/ktimeout.c
+++ linux/kernel/ktimeout.c
@@ -265,7 +265,7 @@ void ktimeout_add_on(struct ktimeout *kt
  *
  * mod_ktimeout(ktimeout, expires) is equivalent to:
  *
- *  del_ktimeout(ktimeout); ktimeout->expires = expires; add_ktimeout(ktimeout);
+ *  ktimeout_del(ktimeout); ktimeout->expires = expires; add_ktimeout(ktimeout);
  *
  * Note that if there are multiple unserialized concurrent users of the same
  * timeout, then mod_ktimeout() is the only safe way to modify the interval,
@@ -293,17 +293,17 @@ int mod_ktimeout(struct ktimeout *ktimeo
 EXPORT_SYMBOL(mod_ktimeout);
 
 /***
- * del_ktimeout - deactive a timeout.
+ * ktimeout_del - deactive a timeout.
  * @ktimeout: the timeout to be deactivated
  *
- * del_ktimeout() deactivates a timeout - this works on both active and inactive
+ * ktimeout_del() deactivates a timeout - this works on both active and inactive
  * ktimeouts.
  *
  * The function returns whether it has deactivated a pending timeout or not.
- * (ie. del_ktimeout() of an inactive timeout returns 0, del_ktimeout() of an
+ * (ie. ktimeout_del() of an inactive timeout returns 0, ktimeout_del() of an
  * active timeout returns 1.)
  */
-int del_ktimeout(struct ktimeout *ktimeout)
+int ktimeout_del(struct ktimeout *ktimeout)
 {
 	ktimeout_base_t *base;
 	unsigned long flags;
@@ -321,7 +321,7 @@ int del_ktimeout(struct ktimeout *ktimeo
 	return ret;
 }
 
-EXPORT_SYMBOL(del_ktimeout);
+EXPORT_SYMBOL(ktimeout_del);
 
 #ifdef CONFIG_SMP
 /*
@@ -356,7 +356,7 @@ out:
  * del_ktimeout_sync - deactivate a timeout and wait for the handler to finish.
  * @ktimeout: the timeout to be deactivated
  *
- * This function only differs from del_ktimeout() on SMP: besides deactivating
+ * This function only differs from ktimeout_del() on SMP: besides deactivating
  * the timeout it also makes sure the handler has finished executing on other
  * CPUs.
  *

--

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

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux