patch-2.4.4 linux/arch/ppc/kernel/semaphore.c

Next file: linux/arch/s390/Makefile
Previous file: linux/arch/ppc/kernel/prep_setup.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.4.3/linux/arch/ppc/kernel/semaphore.c linux/arch/ppc/kernel/semaphore.c
@@ -137,44 +137,3 @@
 {
 	return waking_non_zero_trylock(sem);
 }
-
-
-/*
- * rw semaphores    Ani Joshi <ajoshi@unixbox.com>
- * based on alpha port by Andrea Arcangeli <andrea@suse.de>
- */
-
-void down_read_failed(struct rw_semaphore *sem)
-{
-	struct task_struct *tsk = current;
-	DECLARE_WAITQUEUE(wait, tsk);
-
-	add_wait_queue_exclusive(&sem->wait, &wait);
-
-	do {
-		__set_task_state(tsk, TASK_UNINTERRUPTIBLE);
-		spin_unlock_irq(&sem->lock);
-		schedule();
-		spin_lock_irq(&sem->lock);
-	} while(sem->wr);
-
-	remove_wait_queue(&sem->wait, &wait);
-}
-
-void down_write_failed(struct rw_semaphore *sem)
-{
-	struct task_struct *tsk = current;
-	DECLARE_WAITQUEUE(wait, tsk);
-
-	add_wait_queue_exclusive(&sem->wait, &wait);
-
-	do {
-		__set_task_state(tsk, TASK_UNINTERRUPTIBLE);
-		spin_unlock_irq(&sem->lock);
-		schedule();
-		spin_lock_irq(&sem->lock);
-	} while(sem->rd || sem->wr);
-
-	remove_wait_queue(&sem->wait, &wait);
-}
-

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)