Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 289227
b: refs/heads/master
c: 974f9cd
h: refs/heads/master
i:
  289225: ffd43d7
  289223: 6082f88
v: v3
  • Loading branch information
Víctor Manuel Jáquez Leal authored and Greg Kroah-Hartman committed Mar 9, 2012
1 parent 2235bed commit 2badcc7
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 60 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 311abd9ac44f72f4d10adaaf3af1c273b0f71db8
refs/heads/master: 974f9cd50ae72c02490298372a2a64fb47c4de91
25 changes: 0 additions & 25 deletions trunk/drivers/staging/tidspbridge/include/dspbridge/rmm.h
Original file line number Diff line number Diff line change
Expand Up @@ -114,18 +114,6 @@ extern int rmm_create(struct rmm_target_obj **target_obj,
*/
extern void rmm_delete(struct rmm_target_obj *target);

/*
* ======== rmm_exit ========
* Exit the RMM module
*
* Parameters:
* Returns:
* Requires:
* rmm_init successfully called.
* Ensures:
*/
extern void rmm_exit(void);

/*
* ======== rmm_free ========
* Free or unreserve memory allocated through rmm_alloc().
Expand All @@ -147,19 +135,6 @@ extern void rmm_exit(void);
extern bool rmm_free(struct rmm_target_obj *target, u32 segid, u32 dsp_addr,
u32 size, bool reserved);

/*
* ======== rmm_init ========
* Initialize the RMM module
*
* Parameters:
* Returns:
* TRUE: Success.
* FALSE: Failure.
* Requires:
* Ensures:
*/
extern bool rmm_init(void);

/*
* ======== rmm_stat ========
* Obtain memory segment status
Expand Down
10 changes: 2 additions & 8 deletions trunk/drivers/staging/tidspbridge/pmgr/dspapi.c
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,6 @@ void api_exit(void)
msg_exit();
io_exit();
mgr_exit();
rmm_exit();
}
}

Expand All @@ -285,18 +284,17 @@ bool api_init(void)
{
bool ret = true;
bool fdev, fchnl, fmsg, fio;
bool fmgr, frmm;
bool fmgr;

if (api_c_refs == 0) {
/* initialize driver and other modules */
fmgr = mgr_init();
frmm = rmm_init();
fchnl = chnl_init();
fmsg = msg_mod_init();
fio = io_init();
fdev = dev_init();
ret = fdev && fchnl && fmsg && fio;
ret = ret && fmgr && frmm;
ret = ret && fmgr;
if (!ret) {

if (fmgr)
Expand All @@ -313,10 +311,6 @@ bool api_init(void)

if (fdev)
dev_exit();

if (frmm)
rmm_exit();

}
}
if (ret)
Expand Down
6 changes: 0 additions & 6 deletions trunk/drivers/staging/tidspbridge/rmgr/nldr.c
Original file line number Diff line number Diff line change
Expand Up @@ -628,9 +628,6 @@ void nldr_delete(struct nldr_object *nldr_obj)
void nldr_exit(void)
{
refs--;

if (refs == 0)
rmm_exit();
}

/*
Expand Down Expand Up @@ -746,9 +743,6 @@ int nldr_get_rmm_manager(struct nldr_object *nldr,
*/
bool nldr_init(void)
{
if (refs == 0)
rmm_init();

refs++;

return true;
Expand Down
20 changes: 0 additions & 20 deletions trunk/drivers/staging/tidspbridge/rmgr/rmm.c
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,6 @@ struct rmm_target_obj {
struct list_head ovly_list; /* List of overlay memory in use */
};

static u32 refs; /* module reference count */

static bool alloc_block(struct rmm_target_obj *target, u32 segid, u32 size,
u32 align, u32 *dsp_address);
static bool free_block(struct rmm_target_obj *target, u32 segid, u32 addr,
Expand Down Expand Up @@ -259,14 +257,6 @@ void rmm_delete(struct rmm_target_obj *target)
kfree(target);
}

/*
* ======== rmm_exit ========
*/
void rmm_exit(void)
{
refs--;
}

/*
* ======== rmm_free ========
*/
Expand Down Expand Up @@ -299,16 +289,6 @@ bool rmm_free(struct rmm_target_obj *target, u32 segid, u32 dsp_addr, u32 size,
return ret;
}

/*
* ======== rmm_init ========
*/
bool rmm_init(void)
{
refs++;

return true;
}

/*
* ======== rmm_stat ========
*/
Expand Down

0 comments on commit 2badcc7

Please sign in to comment.