~ubuntu-branches/ubuntu/trusty/linux-linaro-omap/trusty

« back to all changes in this revision

Viewing changes to drivers/edac/edac_device.c

  • Committer: Package Import Robot
  • Author(s): John Rigby, John Rigby
  • Date: 2011-09-26 10:44:23 UTC
  • Revision ID: package-import@ubuntu.com-20110926104423-57i0gl3v99b3lkfg
Tags: 3.0.0-1007.9
[ John Rigby ]

Enable crypto modules and remove crypto-modules from
exclude-module files
LP: #826021

Show diffs side-by-side

added added

removed removed

Lines of Context:
346
346
}
347
347
 
348
348
/*
349
 
 * complete_edac_device_list_del
350
 
 *
351
 
 *      callback function when reference count is zero
352
 
 */
353
 
static void complete_edac_device_list_del(struct rcu_head *head)
354
 
{
355
 
        struct edac_device_ctl_info *edac_dev;
356
 
 
357
 
        edac_dev = container_of(head, struct edac_device_ctl_info, rcu);
358
 
        INIT_LIST_HEAD(&edac_dev->link);
359
 
}
360
 
 
361
 
/*
362
349
 * del_edac_device_from_global_list
363
 
 *
364
 
 *      remove the RCU, setup for a callback call,
365
 
 *      then wait for the callback to occur
366
350
 */
367
351
static void del_edac_device_from_global_list(struct edac_device_ctl_info
368
352
                                                *edac_device)
369
353
{
370
354
        list_del_rcu(&edac_device->link);
371
 
        call_rcu(&edac_device->rcu, complete_edac_device_list_del);
372
 
        rcu_barrier();
 
355
 
 
356
        /* these are for safe removal of devices from global list while
 
357
         * NMI handlers may be traversing list
 
358
         */
 
359
        synchronize_rcu();
 
360
        INIT_LIST_HEAD(&edac_device->link);
373
361
}
374
362
 
375
363
/*