summaryrefslogtreecommitdiffstats
path: root/include/asm-mips/system.h
diff options
context:
space:
mode:
authorRalf Baechle2005-05-31 13:49:19 +0200
committerRalf Baechle2005-10-29 20:31:17 +0200
commite50c0a8fa60da9ac0e0a70caa8a3a803815c1f2f (patch)
tree1928e8b0a4b7fb615e5a9f65dc934ba2e74cb9cd /include/asm-mips/system.h
parent64-bit fixes for Alchemy code ;) (diff)
downloadkernel-qcow2-linux-e50c0a8fa60da9ac0e0a70caa8a3a803815c1f2f.tar.gz
kernel-qcow2-linux-e50c0a8fa60da9ac0e0a70caa8a3a803815c1f2f.tar.xz
kernel-qcow2-linux-e50c0a8fa60da9ac0e0a70caa8a3a803815c1f2f.zip
Support the MIPS32 / MIPS64 DSP ASE.
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'include/asm-mips/system.h')
-rw-r--r--include/asm-mips/system.h11
1 files changed, 8 insertions, 3 deletions
diff --git a/include/asm-mips/system.h b/include/asm-mips/system.h
index 6663efd49b27..cd3a6bca7abd 100644
--- a/include/asm-mips/system.h
+++ b/include/asm-mips/system.h
@@ -17,6 +17,7 @@
#include <asm/addrspace.h>
#include <asm/cpu-features.h>
+#include <asm/dsp.h>
#include <asm/ptrace.h>
#include <asm/war.h>
#include <asm/interrupt.h>
@@ -154,9 +155,13 @@ extern asmlinkage void *resume(void *last, void *next, void *next_ti);
struct task_struct;
-#define switch_to(prev,next,last) \
-do { \
- (last) = resume(prev, next, next->thread_info); \
+#define switch_to(prev,next,last) \
+do { \
+ if (cpu_has_dsp) \
+ __save_dsp(prev); \
+ (last) = resume(prev, next, next->thread_info); \
+ if (cpu_has_dsp) \
+ __restore_dsp(current); \
} while(0)
#define ROT_IN_PIECES \
olumn2'>| * | | | ALSA: cs46xx: Fix cpu idling with resumeFlorian Zumbiehl2010-01-261-0/+10 | * | | | Merge branch 'topic/noncached-mmap' into topic/miscTakashi Iwai2010-01-217-2/+23 | |\ \ \ \ | | * | | | ALSA: pcm - Call pgprot_noncached() for vmalloc'ed buffersTakashi Iwai2010-01-187-0/+23 | | * | | | ALSA: pcm - Remove unneeded ifdef pgprot_noncachedTakashi Iwai2010-01-181-2/+0Star | * | | | | Merge remote branch 'alsa/devel' into topic/miscTakashi Iwai2010-01-214-12/+17 | |\ \ \ \ \ | * \ \ \ \ \ Merge remote branch 'alsa/devel' into topic/miscTakashi Iwai2010-01-189-16/+1292 | |\ \ \ \ \ \ | | |_|/ / / / | |/| | | | | | * | | | | | ALSA: ctxfi - Add subsystem optionTakashi Iwai2010-01-144-10/+23 | * | | | | | ALSA: Add snd_pci_quirk_lookup_id()Takashi Iwai2010-01-142-5/+30 | * | | | | | Merge branch 'devel' of git.alsa-project.org:alsa-kernel into topic/miscTakashi Iwai2010-01-1313-183/+591 | |\ \ \ \ \ \ | * | | | | | | sound_oss: remove use of old BKL ioctl pathAlan Cox2010-01-121-13/+22 | * | | | | | | Merge commit alsa/devel into topic/miscTakashi Iwai2010-01-1221-371/+720 | |\ \ \ \ \ \ \ | * | | | | | | | ALSA: usb-audio: use usbquirk.h for detection of HVR-950Q/850John S. Gruber2009-12-283-15/+130 | * | | | | | | | ALSA: usb-audio: relax urb data align. restriction HVR-950Q and HVR-850 onlyJohn S. Gruber2009-12-282-2/+30 | * | | | | | | | ALSA: usb-audio: make buffer pointer based on bytes instead on framesClemens Ladisch2009-12-281-39/+37Star | * | | | | | | | ALSA: usb-audio - Added functionality for E-mu 0404USB/0202USB/TrackerPreSergiy Kovalchuk2009-12-283-4/+133 | * | | | | | | | ALSA: jazz16: refine dma and irq selectionKrzysztof Helt2009-12-253-2/+37 | * | | | | | | | Merge branch 'fix/misc' into topic/miscTakashi Iwai2009-12-251301-18890/+47851 | |\ \ \ \ \ \ \ \ | * | | | | | | | | ALSA: cs46xx - Fix suspend/resume with new DSPTakashi Iwai2009-12-225-25/+62 | * | | | | | | | | ALSA: refine rate selection in snd_interval_ratnum()Krzysztof Helt2009-12-221-3/+17 | * | | | | | | | | Merge branch 'fix/misc' into topic/miscTakashi Iwai2009-12-226-126/+67Star | |\ \ \ \ \ \ \ \ \ | * | | | | | | | | | ALSA: pcm - Add missing inclusion of linux/vmalloc.hTakashi Iwai2009-12-211-0/+1 | * | | | | | | | | | ALSA: jazz16: Add support for Media Vision Jazz16 chipsetKrzysztof Helt2009-12-217-16/+511 | * | | | | | | | | | sound: ua101: use vmalloc buffer helper functionsClemens Ladisch2009-12-181-45/+7Star | * | | | | | | | | | sound: usb-audio: use vmalloc buffer helper functionsClemens Ladisch2009-12-181-41/+5Star | * | | | | | | | | | sound: vx: use vmalloc buffer helper functionsClemens Ladisch2009-12-181-54/+5Star | * | | | | | | | | | sound: sgio2audio: use vmalloc buffer helper functionsClemens Ladisch2009-12-181-25/+6Star | * | | | | | | | | | sound: pdaudiocf: use vmalloc buffer helper functionsClemens Ladisch2009-12-181-47/+4Star | * | | | | | | | | | sound: pcm: add vmalloc buffer helper functionsClemens Ladisch2009-12-182-0/+92 | * | | | | | | | | | Merge branch 'fix/misc' into topic/miscTakashi Iwai2009-12-183-3/+3 | |\ \ \ \ \ \ \ \ \ \ | * \ \ \ \ \ \ \ \ \ \ Merge branch 'fix/misc' into topic/miscTakashi Iwai2009-12-174024-254268/+404390 | |\ \ \ \ \ \ \ \ \ \ \ | * | | | | | | | | | | | ALSA: Release v1.0.22Jaroslav Kysela2009-12-171-1/+1 | * | | | | | | | | | | | Merge branch 'next/isa' into topic/miscTakashi Iwai2009-12-14