From cc602187d4466374bca031039e145aa1b89aca96 Mon Sep 17 00:00:00 2001 From: "Bjoern B. Brandenburg" Date: Fri, 28 Jan 2011 16:41:16 -0500 Subject: Litmus core: replace FMLP & SRP system calls with generic syscalls This renders the FMLP and SRP unfunctional until they are ported to the new locking API. --- litmus/srp.c | 59 ----------------------------------------------------------- 1 file changed, 59 deletions(-) (limited to 'litmus/srp.c') diff --git a/litmus/srp.c b/litmus/srp.c index 4601b7dba812..b4c171e79fd4 100644 --- a/litmus/srp.c +++ b/litmus/srp.c @@ -189,55 +189,6 @@ static void do_srp_up(struct srp_semaphore* sem) wake_up_all(&__get_cpu_var(srp).ceiling_blocked); } -/* Adjust the system-wide priority ceiling if resource is claimed. */ -asmlinkage long sys_srp_down(int sem_od) -{ - int cpu; - int ret = -EINVAL; - struct srp_semaphore* sem; - - /* disabling preemptions is sufficient protection since - * SRP is strictly per CPU and we don't interfere with any - * interrupt handlers - */ - preempt_disable(); - TS_SRP_DOWN_START; - - cpu = smp_processor_id(); - sem = lookup_srp_sem(sem_od); - if (sem && sem->cpu == cpu) { - do_srp_down(sem); - ret = 0; - } - - TS_SRP_DOWN_END; - preempt_enable(); - return ret; -} - -/* Adjust the system-wide priority ceiling if resource is freed. */ -asmlinkage long sys_srp_up(int sem_od) -{ - int cpu; - int ret = -EINVAL; - struct srp_semaphore* sem; - - preempt_disable(); - TS_SRP_UP_START; - - cpu = smp_processor_id(); - sem = lookup_srp_sem(sem_od); - - if (sem && sem->cpu == cpu) { - do_srp_up(sem); - ret = 0; - } - - TS_SRP_UP_END; - preempt_enable(); - return ret; -} - static int srp_wake_up(wait_queue_t *wait, unsigned mode, int sync, void *key) { @@ -303,16 +254,6 @@ void srp_ceiling_block(void) #else -asmlinkage long sys_srp_down(int sem_od) -{ - return -ENOSYS; -} - -asmlinkage long sys_srp_up(int sem_od) -{ - return -ENOSYS; -} - struct fdso_ops srp_sem_ops = {}; #endif -- cgit v1.2.2