Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 24134
b: refs/heads/master
c: a1d03fc
h: refs/heads/master
v: v3
  • Loading branch information
Dave Peterson authored and Linus Torvalds committed Mar 26, 2006
1 parent f1fd83c commit 91c027c
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 19 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: 749ede57443b2a7ede2db105145f21047efcea6a
refs/heads/master: a1d03fcc1399b1e23922bcc3af1772b128aa6e93
36 changes: 18 additions & 18 deletions trunk/drivers/edac/edac_mc.c
Original file line number Diff line number Diff line change
Expand Up @@ -1451,6 +1451,24 @@ static int add_mc_to_global_list (struct mem_ctl_info *mci)
}


static void complete_mc_list_del (struct rcu_head *head)
{
struct mem_ctl_info *mci;

mci = container_of(head, struct mem_ctl_info, rcu);
INIT_LIST_HEAD(&mci->link);
complete(&mci->complete);
}


static void del_mc_from_global_list (struct mem_ctl_info *mci)
{
list_del_rcu(&mci->link);
init_completion(&mci->complete);
call_rcu(&mci->rcu, complete_mc_list_del);
wait_for_completion(&mci->complete);
}


EXPORT_SYMBOL(edac_mc_add_mc);

Expand Down Expand Up @@ -1511,24 +1529,6 @@ int edac_mc_add_mc(struct mem_ctl_info *mci)
}



static void complete_mc_list_del (struct rcu_head *head)
{
struct mem_ctl_info *mci;

mci = container_of(head, struct mem_ctl_info, rcu);
INIT_LIST_HEAD(&mci->link);
complete(&mci->complete);
}

static void del_mc_from_global_list (struct mem_ctl_info *mci)
{
list_del_rcu(&mci->link);
init_completion(&mci->complete);
call_rcu(&mci->rcu, complete_mc_list_del);
wait_for_completion(&mci->complete);
}

EXPORT_SYMBOL(edac_mc_del_mc);

/**
Expand Down

0 comments on commit 91c027c

Please sign in to comment.