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

« back to all changes in this revision

Viewing changes to net/core/drop_monitor.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:
207
207
        rcu_read_unlock();
208
208
}
209
209
 
210
 
 
211
 
static void free_dm_hw_stat(struct rcu_head *head)
212
 
{
213
 
        struct dm_hw_stat_delta *n;
214
 
        n = container_of(head, struct dm_hw_stat_delta, rcu);
215
 
        kfree(n);
216
 
}
217
 
 
218
210
static int set_all_monitor_traces(int state)
219
211
{
220
212
        int rc = 0;
245
237
                list_for_each_entry_safe(new_stat, temp, &hw_stats_list, list) {
246
238
                        if (new_stat->dev == NULL) {
247
239
                                list_del_rcu(&new_stat->list);
248
 
                                call_rcu(&new_stat->rcu, free_dm_hw_stat);
 
240
                                kfree_rcu(new_stat, rcu);
249
241
                        }
250
242
                }
251
243
                break;
314
306
                                new_stat->dev = NULL;
315
307
                                if (trace_state == TRACE_OFF) {
316
308
                                        list_del_rcu(&new_stat->list);
317
 
                                        call_rcu(&new_stat->rcu, free_dm_hw_stat);
 
309
                                        kfree_rcu(new_stat, rcu);
318
310
                                        break;
319
311
                                }
320
312
                        }