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/kernel.h | |
| parent | e2a169bce53aff3e5fc300c00d3828129298d469 (diff) | |
| download | rockbox-3cf148945ed0b484b4610dbc2b4afaa34f2ce2cc.zip rockbox-3cf148945ed0b484b4610dbc2b4afaa34f2ce2cc.tar.gz rockbox-3cf148945ed0b484b4610dbc2b4afaa34f2ce2cc.tar.bz2 rockbox-3cf148945ed0b484b4610dbc2b4afaa34f2ce2cc.tar.xz | |
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/kernel.h')
| -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 982ecf2..90a2163 100644 --- a/firmware/export/kernel.h +++ b/firmware/export/kernel.h @@ -159,15 +159,6 @@ struct mutex unsigned char locked; /* locked semaphore */ }; -#if NUM_CORES > 1 -struct spinlock -{ - struct thread_entry *thread; /* lock owner */ - int count; /* lock owner recursion count */ - struct corelock cl; /* multiprocessor sync */ -}; -#endif - #ifdef HAVE_SEMAPHORE_OBJECTS struct semaphore { @@ -284,11 +275,6 @@ extern void mutex_unlock(struct mutex *m); static inline void mutex_set_preempt(struct mutex *m, bool preempt) { m->no_preempt = !preempt; } #endif -#if NUM_CORES > 1 -extern void spinlock_init(struct spinlock *l); -extern void spinlock_lock(struct spinlock *l); -extern void spinlock_unlock(struct spinlock *l); -#endif #ifdef HAVE_SEMAPHORE_OBJECTS extern void semaphore_init(struct semaphore *s, int max, int start); extern void semaphore_wait(struct semaphore *s); |