summaryrefslogtreecommitdiff
path: root/firmware/export
diff options
context:
space:
mode:
authorMichael Sevakis <jethead71@rockbox.org>2009-02-03 12:16:45 +0000
committerMichael Sevakis <jethead71@rockbox.org>2009-02-03 12:16:45 +0000
commit3cf148945ed0b484b4610dbc2b4afaa34f2ce2cc (patch)
tree9d25dc10a7ab2f2a2d5dc263136ac121b6efd624 /firmware/export
parente2a169bce53aff3e5fc300c00d3828129298d469 (diff)
downloadrockbox-3cf148945ed0b484b4610dbc2b4afaa34f2ce2cc.tar.gz
rockbox-3cf148945ed0b484b4610dbc2b4afaa34f2ce2cc.zip
Remove struct spinlock to cleanup some mess and simplify. It's only used in boosting for multiprocesors and a pure two-corelock heirarchy will do just fine.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19910 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/export')
-rw-r--r--firmware/export/kernel.h14
1 files changed, 0 insertions, 14 deletions
diff --git a/firmware/export/kernel.h b/firmware/export/kernel.h
index 982ecf2589..90a21630ed 100644
--- a/firmware/export/kernel.h
+++ b/firmware/export/kernel.h
@@ -159,15 +159,6 @@ struct mutex
159 unsigned char locked; /* locked semaphore */ 159 unsigned char locked; /* locked semaphore */
160}; 160};
161 161
162#if NUM_CORES > 1
163struct spinlock
164{
165 struct thread_entry *thread; /* lock owner */
166 int count; /* lock owner recursion count */
167 struct corelock cl; /* multiprocessor sync */
168};
169#endif
170
171#ifdef HAVE_SEMAPHORE_OBJECTS 162#ifdef HAVE_SEMAPHORE_OBJECTS
172struct semaphore 163struct semaphore
173{ 164{
@@ -284,11 +275,6 @@ extern void mutex_unlock(struct mutex *m);
284static inline void mutex_set_preempt(struct mutex *m, bool preempt) 275static inline void mutex_set_preempt(struct mutex *m, bool preempt)
285 { m->no_preempt = !preempt; } 276 { m->no_preempt = !preempt; }
286#endif 277#endif
287#if NUM_CORES > 1
288extern void spinlock_init(struct spinlock *l);
289extern void spinlock_lock(struct spinlock *l);
290extern void spinlock_unlock(struct spinlock *l);
291#endif
292#ifdef HAVE_SEMAPHORE_OBJECTS 278#ifdef HAVE_SEMAPHORE_OBJECTS
293extern void semaphore_init(struct semaphore *s, int max, int start); 279extern void semaphore_init(struct semaphore *s, int max, int start);
294extern void semaphore_wait(struct semaphore *s); 280extern void semaphore_wait(struct semaphore *s);