summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 555082d)
raw | patch | inline | side by side (parent: 555082d)
author | Wendy Liang <jliang@xilinx.com> | |
Tue, 31 May 2016 19:20:03 +0000 (12:20 -0700) | ||
committer | Wendy Liang <jliang@xilinx.com> | |
Thu, 13 Oct 2016 05:01:41 +0000 (22:01 -0700) |
As libmetal mutex has been ported to OpenAMP,
remove the OpenAMP env mutex implementation.
Signed-off-by: Wendy Liang <jliang@xilinx.com>
remove the OpenAMP env mutex implementation.
Signed-off-by: Wendy Liang <jliang@xilinx.com>
lib/include/openamp/env.h | patch | blob | history | |
lib/system/generic/env.c | patch | blob | history |
index 8ff301c30c2018234b2b006f4357cf3cba786086..2abef3a068b141c5afa68c974a7a5f98e7e838d8 100644 (file)
* env_mb
* env_rmb
* env_wmb
- * env_create_mutex
- * env_delete_mutex
- * env_lock_mutex
- * env_unlock_mutex
* env_sleep_msec
* env_disable_interrupts
* env_restore_interrupts
*-----------------------------------------------------------------------------
*/
-/**
- * env_create_mutex
- *
- * Creates a mutex with given initial count.
- *
- * @param lock - pointer to created mutex
- * @param count - initial count 0 or 1
- *
- * @return - status of function execution
- */
-int env_create_mutex(void **lock, int count);
-
-/**
- * env_delete_mutex
- *
- * Deletes the given lock.
- *
- * @param lock - mutex to delete
- */
-
-void env_delete_mutex(void *lock);
-
-/**
- * env_lock_mutex
- *
- * Tries to acquire the lock, if lock is not available then call to
- * this function will suspend.
- *
- * @param lock - mutex to lock
- *
- */
-
-void env_lock_mutex(void *lock);
-
-/**
- * env_unlock_mutex
- *
- * Releases the given lock.
- *
- * @param lock - mutex to unlock
- */
-
-void env_unlock_mutex(void *lock);
-
/**
* env_create_sync_lock
*
index 20e0897882c7898d90f7421372aada3ea2942630..0e6a36ed6fe8c1f40311b716d8112cccece29f44 100755 (executable)
--- a/lib/system/generic/env.c
+++ b/lib/system/generic/env.c
return platform_patova(address);
}
-/**
- * env_create_mutex
- *
- * Creates a mutex with the given initial count.
- *
- */
-int env_create_mutex(void **lock, int count)
-{
- (void)lock;
- (void)count;
-
- return 0;
-}
-
-/**
- * env_delete_mutex
- *
- * Deletes the given lock
- *
- */
-void env_delete_mutex(void *lock)
-{
- (void)lock;
-}
-
-/**
- * env_lock_mutex
- *
- * Tries to acquire the lock, if lock is not available then call to
- * this function will suspend.
- */
-void env_lock_mutex(void *lock)
-{
- (void)lock;
-
- env_disable_interrupts();
-}
-
-/**
- * env_unlock_mutex
- *
- * Releases the given lock.
- */
-
-void env_unlock_mutex(void *lock)
-{
- (void)lock;
- env_restore_interrupts();
-}
-
/**
* env_create_sync_lock
*