perf: Remove perf_event_attr::type check
authorLin Ming <ming.m.lin@intel.com>
Thu, 30 Jun 2011 08:09:55 +0000 (08:09 +0000)
committerIngo Molnar <mingo@elte.hu>
Thu, 21 Jul 2011 18:41:55 +0000 (20:41 +0200)
commit9985c20f9e4aee6857c08246b273a3695a52b929
treee2942d148c4cbd51ddcaa8c9b8e47229a31f6e34
parentf53173e47dee5f7514d264796bec58d43ed0f67f
perf: Remove perf_event_attr::type check

PMU type id can be allocated dynamically, so perf_event_attr::type check
when copying attribute from userspace to kernel is not valid.

Signed-off-by: Lin Ming <ming.m.lin@intel.com>
Cc: Robert Richter <robert.richter@amd.com>
Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Link: http://lkml.kernel.org/r/1309421396-17438-4-git-send-email-ming.m.lin@intel.com
Signed-off-by: Ingo Molnar <mingo@elte.hu>
kernel/events/core.c