~ubuntu-branches/ubuntu/precise/linux-ti-omap4/precise

« back to all changes in this revision

Viewing changes to drivers/edac/edac_pci.c

  • Committer: Bazaar Package Importer
  • Author(s): Paolo Pisati
  • Date: 2011-06-29 15:23:51 UTC
  • mfrom: (26.1.1 natty-proposed)
  • Revision ID: james.westby@ubuntu.com-20110629152351-xs96tm303d95rpbk
Tags: 3.0.0-1200.2
* Rebased against 3.0.0-6.7
* BSP from TI based on 3.0.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
164
164
}
165
165
 
166
166
/*
167
 
 * complete_edac_pci_list_del
168
 
 *
169
 
 *      RCU completion callback to indicate item is deleted
170
 
 */
171
 
static void complete_edac_pci_list_del(struct rcu_head *head)
172
 
{
173
 
        struct edac_pci_ctl_info *pci;
174
 
 
175
 
        pci = container_of(head, struct edac_pci_ctl_info, rcu);
176
 
        INIT_LIST_HEAD(&pci->link);
177
 
}
178
 
 
179
 
/*
180
167
 * del_edac_pci_from_global_list
181
168
 *
182
169
 *      remove the PCI control struct from the global list
184
171
static void del_edac_pci_from_global_list(struct edac_pci_ctl_info *pci)
185
172
{
186
173
        list_del_rcu(&pci->link);
187
 
        call_rcu(&pci->rcu, complete_edac_pci_list_del);
188
 
        rcu_barrier();
 
174
 
 
175
        /* these are for safe removal of devices from global list while
 
176
         * NMI handlers may be traversing list
 
177
         */
 
178
        synchronize_rcu();
 
179
        INIT_LIST_HEAD(&pci->link);
189
180
}
190
181
 
191
182
#if 0