We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a8e6272 commit 1618f63Copy full SHA for 1618f63
kernel/power/energy_model.c
@@ -161,22 +161,14 @@ static void em_debug_create_pd(struct device *dev) {}
161
static void em_debug_remove_pd(struct device *dev) {}
162
#endif
163
164
-static void em_destroy_table_rcu(struct rcu_head *rp)
165
-{
166
- struct em_perf_table __rcu *table;
167
-
168
- table = container_of(rp, struct em_perf_table, rcu);
169
- kfree(table);
170
-}
171
172
static void em_release_table_kref(struct kref *kref)
173
{
174
struct em_perf_table __rcu *table;
175
176
/* It was the last owner of this table so we can free */
177
table = container_of(kref, struct em_perf_table, kref);
178
179
- call_rcu(&table->rcu, em_destroy_table_rcu);
+ kfree_rcu(table, rcu);
180
}
181
182
/**
0 commit comments