[Ocfs2-commits] mfasheh commits r1644 - branches/dlm-glue/src
svn-commits at oss.oracle.com
svn-commits at oss.oracle.com
Thu Nov 11 18:23:52 CST 2004
Author: mfasheh
Date: 2004-11-11 18:23:50 -0600 (Thu, 11 Nov 2004)
New Revision: 1644
Modified:
branches/dlm-glue/src/util.c
branches/dlm-glue/src/util.h
Log:
* this tree no longer uses ocfs_sleep.
Modified: branches/dlm-glue/src/util.c
===================================================================
--- branches/dlm-glue/src/util.c 2004-11-11 22:09:13 UTC (rev 1643)
+++ branches/dlm-glue/src/util.c 2004-11-12 00:23:50 UTC (rev 1644)
@@ -129,31 +129,6 @@
} /* ocfs_daemonize */
#endif
-/*
- * ocfs_sleep()
- *
- * The interval time is in milliseconds
- *
- * This function needs to be removed.
- * Instead call schedule_timeout() directly and handle signals.
- */
-int ocfs_sleep (__u32 ms)
-{
- __u32 numJiffies;
-
- LOG_ENTRY ();
-
- /* 10ms = 1 jiffy, minimum resolution is one jiffy */
- numJiffies = ms * HZ / 1000;
- numJiffies = (numJiffies < 1) ? 1 : numJiffies;
-
- set_current_state (TASK_INTERRUPTIBLE);
- numJiffies = schedule_timeout (numJiffies);
-
- LOG_EXIT ();
- return 0;
-} /* ocfs_sleep */
-
/* prefetch has been declared to allow to build in debug mode */
#ifdef DEBUG
#ifndef ARCH_HAS_PREFETCH
Modified: branches/dlm-glue/src/util.h
===================================================================
--- branches/dlm-glue/src/util.h 2004-11-11 22:09:13 UTC (rev 1643)
+++ branches/dlm-glue/src/util.h 2004-11-12 00:23:50 UTC (rev 1644)
@@ -32,7 +32,6 @@
void ocfs_set_timeout(ocfs_timeout *to, __u32 timeout);
void ocfs_show_stack(unsigned long *esp);
void ocfs_show_trace(unsigned long *stack);
-int ocfs_sleep(__u32 ms);
void ocfs_truncate_inode_pages(struct inode *inode, loff_t off);
int __ocfs_wait_atomic_eq(wait_queue_head_t *wq, atomic_t *var, int val, int ms);
void ocfs_block_sigs(sigset_t *oldsigs, unsigned long mask);
More information about the Ocfs2-commits
mailing list