diff options
author | John Kacur <jkacur@redhat.com> | 2023-10-03 14:30:22 -0400 |
---|---|---|
committer | John Kacur <jkacur@redhat.com> | 2023-10-03 14:30:22 -0400 |
commit | 09c7a043f26da1d814211dc18f8396d76f9c6794 (patch) | |
tree | 43e4691b2fd0ac4ce4b58450b1608b88990dc776 | |
parent | df772e170b8b82c4fce3c80c3be6a2a03b24371d (diff) | |
download | rt-tests-09c7a043f26da1d814211dc18f8396d76f9c6794.tar.gz |
rt-tests: pip_stress: Removed unused parameter
Removed unused parameter in pip_stress
Signed-off-by: John Kacur <jkacur@redhat.com>
-rw-r--r-- | src/include/pip_stress.h | 2 | ||||
-rw-r--r-- | src/pi_tests/pip_stress.c | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/include/pip_stress.h b/src/include/pip_stress.h index f03aaf3..84a7c0c 100644 --- a/src/include/pip_stress.h +++ b/src/include/pip_stress.h @@ -32,7 +32,7 @@ void Pthread_mutex_init(pthread_mutex_t *mutex, pthread_mutexattr_t *attr); void Pthread_mutex_lock(pthread_mutex_t *mutex); void Pthread_mutex_unlock(pthread_mutex_t *mutex); -void init_shared_pthread_mutex(pthread_mutex_t *mutex, int protocol, int policy); +void init_shared_pthread_mutex(pthread_mutex_t *mutex, int protocol); int set_rt_prio(pid_t pid, int prio, int policy); int get_rt_prio(pid_t pid); diff --git a/src/pi_tests/pip_stress.c b/src/pi_tests/pip_stress.c index c6d2bae..fb0391b 100644 --- a/src/pi_tests/pip_stress.c +++ b/src/pi_tests/pip_stress.c @@ -114,7 +114,7 @@ int main(int argc, char *argv[]) mptr += sizeof(pthread_mutex_t); /* advance the memory pointer */ /* Initialize our mutex via the resource pointer */ - init_shared_pthread_mutex(resource, PTHREAD_PRIO_INHERIT, policy); + init_shared_pthread_mutex(resource, PTHREAD_PRIO_INHERIT); statep = (struct State*)mptr; mptr += sizeof(struct State); @@ -125,7 +125,7 @@ int main(int argc, char *argv[]) mptr += sizeof(pthread_mutex_t); /* advance the memory pointer */ /* Initialize our State mutex */ - init_shared_pthread_mutex(statep->mutex, PTHREAD_PRIO_NONE, policy); + init_shared_pthread_mutex(statep->mutex, PTHREAD_PRIO_NONE); set_rt_prio(0, prio_min, policy); @@ -323,7 +323,7 @@ void Pthread_mutex_unlock(pthread_mutex_t *mutex) } } -void init_shared_pthread_mutex(pthread_mutex_t *mutex, int protocol, int policy) +void init_shared_pthread_mutex(pthread_mutex_t *mutex, int protocol) { pthread_mutexattr_t attr; |