mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-09 16:12:21 +00:00
MIPS: Consolidate all CONFIG_CPU_HAS_LLSC use in a single C file.
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
This commit is contained in:
parent
6eb10bc9e2
commit
f4c6b6bc5a
4 changed files with 12 additions and 9 deletions
|
@ -63,11 +63,23 @@ do { \
|
|||
#define __mips_mt_fpaff_switch_to(prev) do { (void) (prev); } while (0)
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_CPU_HAS_LLSC
|
||||
#define __clear_software_ll_bit() do { } while (0)
|
||||
#else
|
||||
extern unsigned long ll_bit;
|
||||
|
||||
#define __clear_software_ll_bit() \
|
||||
do { \
|
||||
ll_bit = 0; \
|
||||
} while (0)
|
||||
#endif
|
||||
|
||||
#define switch_to(prev, next, last) \
|
||||
do { \
|
||||
__mips_mt_fpaff_switch_to(prev); \
|
||||
if (cpu_has_dsp) \
|
||||
__save_dsp(prev); \
|
||||
__clear_software_ll_bit(); \
|
||||
(last) = resume(prev, next, task_thread_info(next)); \
|
||||
} while (0)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue