diff options
author | Michael Sevakis <jethead71@rockbox.org> | 2009-02-03 12:16:45 +0000 |
---|---|---|
committer | Michael Sevakis <jethead71@rockbox.org> | 2009-02-03 12:16:45 +0000 |
commit | 3cf148945ed0b484b4610dbc2b4afaa34f2ce2cc (patch) | |
tree | 9d25dc10a7ab2f2a2d5dc263136ac121b6efd624 /firmware/export | |
parent | e2a169bce53aff3e5fc300c00d3828129298d469 (diff) | |
download | rockbox-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.h | 14 |
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 | ||
163 | struct 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 |
172 | struct semaphore | 163 | struct semaphore |
173 | { | 164 | { |
@@ -284,11 +275,6 @@ extern void mutex_unlock(struct mutex *m); | |||
284 | static inline void mutex_set_preempt(struct mutex *m, bool preempt) | 275 | static 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 | ||
288 | extern void spinlock_init(struct spinlock *l); | ||
289 | extern void spinlock_lock(struct spinlock *l); | ||
290 | extern void spinlock_unlock(struct spinlock *l); | ||
291 | #endif | ||
292 | #ifdef HAVE_SEMAPHORE_OBJECTS | 278 | #ifdef HAVE_SEMAPHORE_OBJECTS |
293 | extern void semaphore_init(struct semaphore *s, int max, int start); | 279 | extern void semaphore_init(struct semaphore *s, int max, int start); |
294 | extern void semaphore_wait(struct semaphore *s); | 280 | extern void semaphore_wait(struct semaphore *s); |