]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
perf_event: x86: Clean up some of the u64/long bitmask casting
authorPeter Zijlstra <a.p.zijlstra@chello.nl>
Fri, 22 Jan 2010 14:25:59 +0000 (15:25 +0100)
committerIngo Molnar <mingo@elte.hu>
Fri, 29 Jan 2010 08:01:37 +0000 (09:01 +0100)
commitc91e0f5da81c6f3a611a1bd6d0cca6717c90fdab
tree96b681b98a33850ad436d9729d789f17f2cfd7a2
parent81269a085669b5130058a0275aa7ba9f94abd1fa
perf_event: x86: Clean up some of the u64/long bitmask casting

We need this to be u64 for direct assigment, but the bitmask functions
all work on unsigned long, leading to cast heaven, solve this by using a
union.

Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Stephane Eranian <eranian@google.com>
LKML-Reference: <20100122155535.595961269@chello.nl>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/x86/kernel/cpu/perf_event.c