From: Kevin Hilman <khilman@mvista.com>
To: linux-omap-open-source@linux.omap.com
Subject: [PATCH] ARM: OMAP: rework mutex_init() for RT compatibility
Date: Wed, 21 Jun 2006 12:49:39 -0700 [thread overview]
Message-ID: <11509193791732-git-send-email-khilman@mvista.com> (raw)
Replace remaining __MUTEX_INITIALIZER() calls with mutex_init() to
enable compatibility with the realtime-preempt patchset.
Signed-off-by: Kevin Hilman <khilman@deeprooted.net>
Index: rt-dev/arch/arm/plat-omap/dsp/dsp_common.c
===================================================================
--- rt-dev.orig/arch/arm/plat-omap/dsp/dsp_common.c
+++ rt-dev/arch/arm/plat-omap/dsp/dsp_common.c
@@ -59,7 +59,6 @@ struct cpustat {
void (*mem_rel_cb)(void);
};
struct cpustat cpustat = {
- .lock = __MUTEX_INITIALIZER(cpustat.lock),
.stat = CPUSTAT_RESET,
.icrmask = 0xffff,
};
@@ -243,6 +242,8 @@ static int init_done;
static int __init omap_dsp_init(void)
{
+ mutex_init(&cpustat.lock);
+
dspmem_size = 0;
#ifdef CONFIG_ARCH_OMAP15XX
if (cpu_is_omap1510()) {
Index: rt-dev/sound/oss/omap-audio-aic23.c
===================================================================
--- rt-dev.orig/sound/oss/omap-audio-aic23.c
+++ rt-dev/sound/oss/omap-audio-aic23.c
@@ -244,7 +244,6 @@ static audio_state_t aic23_state = {
.hw_remove = __exit_p(omap_aic23_remove),
.hw_suspend = omap_aic23_suspend,
.hw_resume = omap_aic23_resume,
- .mutex = __MUTEX_INITIALIZER(aic23_state.mutex),
};
/* This will be defined in the audio.h */
@@ -673,6 +672,8 @@ static int __init audio_aic23_init(void)
if (machine_is_omap_h2() || machine_is_omap_h3())
return -ENODEV;
+ mutex_init(&aic23_state.mutex);
+
if (machine_is_omap_osk()) {
/* Set MCLK to be clock input for AIC23 */
aic23_mclk = clk_get(0, "mclk");
Index: rt-dev/sound/oss/omap-audio-tsc2101.c
===================================================================
--- rt-dev.orig/sound/oss/omap-audio-tsc2101.c
+++ rt-dev/sound/oss/omap-audio-tsc2101.c
@@ -326,7 +326,6 @@ static audio_state_t tsc2101_state = {
.hw_remove = omap_tsc2101_remove,
.hw_suspend = omap_tsc2101_suspend,
.hw_resume = omap_tsc2101_resume,
- .mutex = __MUTEX_INITIALIZER(tsc2101_state.mutex),
};
/* This will be defined in the Audio.h */
@@ -1031,6 +1030,8 @@ static int __init audio_tsc2101_init(voi
if (machine_is_omap_osk() || machine_is_omap_innovator())
return -ENODEV;
+ mutex_init(&tsc2101_state.mutex);
+
/* register the codec with the audio driver */
if ((err = audio_register_codec(&tsc2101_state))) {
printk(KERN_ERR
next reply other threads:[~2006-06-21 19:49 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-06-21 19:49 Kevin Hilman [this message]
2006-08-11 10:18 ` [PATCH] ARM: OMAP: rework mutex_init() for RT compatibility Tony Lindgren
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=11509193791732-git-send-email-khilman@mvista.com \
--to=khilman@mvista.com \
--cc=linux-omap-open-source@linux.omap.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox