浏览代码

perfcounters: remove ->nr_inherited

Impact: remove dead code

nr_inherited was not maintained correctly (not decremented) - and also
not used - remove it.

Signed-off-by: Ingo Molnar <mingo@elte.hu>
Ingo Molnar 16 年之前
父节点
当前提交
8fe91e61cd
共有 2 个文件被更改,包括 0 次插入2 次删除
  1. 0 1
      include/linux/perf_counter.h
  2. 0 1
      kernel/perf_counter.c

+ 0 - 1
include/linux/perf_counter.h

@@ -164,7 +164,6 @@ struct perf_counter {
 	struct task_struct		*task;
 	struct task_struct		*task;
 	struct file			*filp;
 	struct file			*filp;
 
 
-	unsigned int			nr_inherited;
 	struct perf_counter		*parent;
 	struct perf_counter		*parent;
 	/*
 	/*
 	 * Protect attach/detach:
 	 * Protect attach/detach:

+ 0 - 1
kernel/perf_counter.c

@@ -1308,7 +1308,6 @@ inherit_counter(struct perf_counter *parent_counter,
 	child_ctx->nr_counters++;
 	child_ctx->nr_counters++;
 
 
 	child_counter->parent = parent_counter;
 	child_counter->parent = parent_counter;
-	parent_counter->nr_inherited++;
 	/*
 	/*
 	 * inherit into child's child as well:
 	 * inherit into child's child as well:
 	 */
 	 */