Skip to contentSkip to conversation

DSPBRIDGE: cleanup to sync module

PATCH Applied Guzman Lugo, Fernando 1 participant 1 message Mar 24, 2010

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 4/4 DSPBRIDGE: cleanup to sync module

Quoted 1 line

From 16f7a1a33d7f76ea3e2962421fea8d5b5f15e4e1 Mon Sep 17 00:00:00 2001

From: Fernando Guzman Lugo <[email protected]>
Date: Tue, 23 Mar 2010 19:54:24 -0600
Subject: [PATCH] DSPBRIDGE: cleanup to sync module

This patch cleanup sync module removing everything is not needed anymore.

---
 arch/arm/plat-omap/include/dspbridge/_chnl_sm.h |    2 -
 arch/arm/plat-omap/include/dspbridge/chnlpriv.h |    4 -
 arch/arm/plat-omap/include/dspbridge/sync.h     |  136 +--------------
 drivers/dsp/bridge/services/services.c          |    9 +-
 drivers/dsp/bridge/services/sync.c              |  212 +----------------------
 5 files changed, 7 insertions(+), 356 deletions(-)
arch/arm/plat-omap/include/dspbridge/_chnl_sm.h +0 -2
index d961578..f394ba6 100644
@@ -141,8 +141,6 @@ struct chnl_object {
 	bhandle user_event;
 	/* Abstract syncronization object */
 	struct sync_object *sync_event;
-	/* Name of Sync event */
-	char sz_event_name[SYNC_MAXNAMELENGTH + 1];
 	u32 process;		/* Process which created this channel */
 	u32 pcb_arg;		/* Argument to use with callback */
 	struct lst_list *pio_requests;	/* List of IOR's to driver */
arch/arm/plat-omap/include/dspbridge/chnlpriv.h +0 -4
index 0793e0d..9fe7a74 100644
@@ -83,10 +83,6 @@ struct chnl_info {
 	u32 cio_cs;		/* Number of IOCs in queue. */
 	u32 cio_reqs;		/* Number of IO Requests in queue. */
 	u32 process;		/* Process owning this channel. */
-	/*
-	 * Name of channel I/O completion event. Not required in Linux
-	 */
-	char sz_event_name[CHNL_MAXEVTNAMELEN + 1];
 };
 
 /* Channel manager info: */
arch/arm/plat-omap/include/dspbridge/sync.h +2 -134

158 lines not on this page · raw message

drivers/dsp/bridge/services/services.c +2 -7
index 5bc392a..ccc4e93 100644
@@ -46,7 +46,6 @@ void services_exit(void)
 {
 	/* Uninitialize all SERVICES modules here */
 	ntfy_exit();
-	sync_exit();
 	clk_exit();
 	reg_exit();
 	cfg_exit();
@@ -62,25 +61,21 @@ bool services_init(void)
 {
 	bool ret = true;
 	bool fcfg, fmem;
-	bool freg, fsync, fclk, fntfy;
+	bool freg, fclk, fntfy;
 
 	/* Perform required initialization of SERVICES modules. */
 	fmem = services_mem_init();
 	freg = reg_init();
 	fcfg = cfg_init();
-	fsync = sync_init();
 	fclk = services_clk_init();
 	fntfy = ntfy_init();
 
-	ret = fcfg && fmem && freg && fsync && fclk;
+	ret = fcfg && fmem && freg && fclk;
 
 	if (!ret) {
 		if (fntfy)
 			ntfy_exit();
 
-		if (fsync)
-			sync_exit();
-
 		if (fclk)
 			clk_exit();
 
drivers/dsp/bridge/services/sync.c +3 -209

232 lines not on this page · raw message

Signature · 1 line
1.6.0.4