diff options
author | Geert Uytterhoeven <Geert.Uytterhoeven@sonycom.com> | 2008-10-30 04:12:58 -0400 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2008-11-19 00:03:54 -0500 |
commit | 9b82f3e61758ed897200f0244b63a77c1791bcba (patch) | |
tree | ed1a41b22151fabf4e096ca6b4bee8f1931599c7 /arch/powerpc/platforms/ps3 | |
parent | 486936cd93e99c802153b3f2f629c5ce62b8c0d4 (diff) |
powerpc/ps3: Replace the flip_ctl logic in ps3av and ps3fb by a mutex
Introduce ps3_gpu_mutex to synchronizes GPU-related operations, like:
- invoking the L1GPU_CONTEXT_ATTRIBUTE_FB_BLIT command using the
lv1_gpu_context_attribute() hypervisor call,
- handling the PS3AV_CID_AVB_PARAM packet in the PS3 A/V Settings driver.
Signed-off-by: Geert Uytterhoeven <Geert.Uytterhoeven@sonycom.com>
Signed-off-by: Geoff Levand <geoffrey.levand@am.sony.com>
Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'arch/powerpc/platforms/ps3')
-rw-r--r-- | arch/powerpc/platforms/ps3/setup.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/powerpc/platforms/ps3/setup.c b/arch/powerpc/platforms/ps3/setup.c index 77bc330263c4..bfc33fb2c7c4 100644 --- a/arch/powerpc/platforms/ps3/setup.c +++ b/arch/powerpc/platforms/ps3/setup.c | |||
@@ -42,6 +42,10 @@ | |||
42 | #define DBG pr_debug | 42 | #define DBG pr_debug |
43 | #endif | 43 | #endif |
44 | 44 | ||
45 | /* mutex synchronizing GPU accesses and video mode changes */ | ||
46 | DEFINE_MUTEX(ps3_gpu_mutex); | ||
47 | EXPORT_SYMBOL_GPL(ps3_gpu_mutex); | ||
48 | |||
45 | #if !defined(CONFIG_SMP) | 49 | #if !defined(CONFIG_SMP) |
46 | static void smp_send_stop(void) {} | 50 | static void smp_send_stop(void) {} |
47 | #endif | 51 | #endif |