mms136: add sysfs for controlling pivot mode

Change-Id: I913860e8eb1643610efd3a27974543e70b022f27
mms136: swap x and y if pivot mode gets changed

Change-Id: Ia6f3a048402e0804ae1863200cad524f5ed64914
Credits: Ketut Putu Kumajaya
perf: Treat attr.config as u64 in perf_swevent_init()

Trinity discovered that we fail to check all 64 bits of attr.config passed by user space,
resulting to out-of-bounds access of the perf_swevent_enabled array in
sw_perf_event_destroy().

Introduced in commit b0a873ebb ("perf: Register PMU
implementations").

Change-Id: If77d4ac7c7812e14717d7d7717900be740d6223e
Signed-off-by: Tommi Rantala <tt.rantala@gmail.com>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: davej@redhat.com
Cc: Paul Mackerras <paulus@samba.org>
Cc: Arnaldo Carvalho de Melo <acme@ghostprotocols.net>
Link: http://lkml.kernel.org/r/1365882554-30259-1-git-send-email-tt.rantala@gmail.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Implemented CPU OC, CPU UV_mV interface, GPU OC, GPU UnderVolted -75mV
Implemented logger: Add sys fs kernel interface to configure Android logger
added ROW v4, BFQ, V(R) I/O schedulers
added  LULZACTIVE, LULZACTIVEQ & PEGASUSQ CPU governors
Implemented SNAPPY v3 compression for Zram
Implemented printk: Add sys kernel interface to configure linux printk logging
Implemented Boeffla Sound v1.6 AS IS
kernel/printk.c : fix typo
block/blk.h : fix missing value for REQ_ATOM_COMPLETE
omap2plus-cpufreq : revert to older scaling_max_freq rule
Updated v2.0 defconfigs, Makefile and build scripts for P3100 & P311x