busfreq: Add busfreq_data member for int_volt table
busfreq: Memory & internal voltage control

Plus permission change on other sysfs controls and addition of sampling rate.

We now have control of the defined OPPs and can parse, and change them.
Use it to modify the OPPs encapsulated memory interface voltages.

Internal voltage steps are dictated by the OPP freq steps, however, they are
stored and retrieved from the ASV table. Retrieve and change the INT steps
relative to their paired MIF steps by using the OPPs.
busfreq: Disable 400266 OPP as it is not used

It's needlessly cluttering up the voltage interfaces.
busfreq: Remove dead code

up_threshold and ppmu_threshold parts are dead code.
cpu averaging is never used anywhere.
opp: De-obscurify OPP structs and disclose find_device_opp

Move definitions of OPP structs in the header file so that its
members are public and the struct is no longer obscure.

Define interface for find_device_opp in the header file.
rtc: Forcefully set register twice
mmc: Disregard pending irqs in sdio

Signed-off-by: Andrei F <luxneb@gmail.com>
cma: Add memspace check against registered regions

Use it against all occurences where userspace comes in direct contact
with physical memory to deny access.

This is the official fix supplied by Samsung.

Signed-off-by: Andrei F <luxneb@gmail.com>
fs-fuse: Assure that new page is not a CMA page
mach-midas: Add a static cma region declaration for MFC

Samsung apparently forgot this in the update 7 sources.
power: reduce regulator initializations to regulator minima
adjust to match
vfp: Use hard-float and neon libraries instead of vfp ones
usb-gadget: Booting from g_file_storage in cdrom mode

The g_file_storage gets upset by some non-zero bytes in the end of a
READ TOC command.

<7>00000000: 55 53 42 43 42 49 4f 53 0c 00 00 00 80 00 0a 43
<7>00000010: 00 00 00 00 00 00 00 0c 40 00 00 00 00 00 00
<7>g_file_storage gadget: SCSI command: READ TOC;  Dc=10, Di=12;  Hc=10, Hi=12
<7>g_file_storage gadget: bulk-in, length 12:
<7>00000000: 00 00 00 00 00 00 00 00 00 00 00 00
<7>g_file_storage gadget: sending command-failure status
<7>g_file_storage gadget:   sense data: SK x05, ASC x24, ASCQ x00;  info x0
<7>g_file_storage gadget: bulk-in, length 13:
<7>00000000: 55 53 42 53 42 49 4f 53 0c 00 00 00 01

And then a sector size of 2048 (instead of 512) as usual for cdrom
drives is assumed. The following should read the el torito info block,
but the BIOS gets the wrong data due to the wrong sector size (offsets
are wrong).

<7>g_file_storage gadget: bulk-out, length 31:
<7>00000000: 55 53 42 43 42 49 4f 53 00 08 00 00 80 00 0c 28
<7>00000010: 00 00 00 00 11 00 00 01 00 00 00 00 00 00 00
<7>SCSI CDB: 28 00 00 00 00 11 00 00 01 00 00 00
<7>g_file_storage gadget: SCSI command: READ(10);  Dc=10, Di=512;  Hc=12, Hi=2048
<7>g_file_storage gadget: READ(10) is buggy! Expected length 10 but we got 12
<7>g_file_storage gadget-lun0: file read 512 @ 8704 -> 512
<7>g_file_storage gadget: bulk-in, length 13:
<7>00000000: 55 53 42 53 42 49 4f 53 00 06 00 00 00

The following patch solves the problem for the BIOS. I am able to load
a kernel and an initrd with it correctly. Of course, it breaks everything
else but it can be considered as a proof of concept. I can boot from my
my g_file_storage cdrom drive with it on that thinkpad X31, on a mainboard with award
bios (with an AMD Geode 1700+ on it) and also on an INTEL D945GCLF board.
rwsem: steal writing sem for better performance
Commit 5a50508 changes to rwsem from mutex, caused aim7 fork_test
performance to dropped 50%. Yuanhan liu did an analysis, found it was
caused by strict sequential writing. Ingo suggest stealing sem writing from
front task in wait queue. https://lkml.org/lkml/2013/1/29/84

So does this patch.
In this patch, I just allow write stealing to happen when the first waiter
is also writer. The performance fully is now fully recovered.

Reported-by: lkp@linux.intel.com
Cc: Ingo Molnar <mingo@kernel.org>
Signed-off-by: Alex Shi <alex.shi@intel.com>
lib/rwsem.c: fix compatibility issues with Linux 3.0.y
Signed-off-by: faux123 <reioux@gmail.com>
lib/lzo: Update LZO compression to current upstream version
This commit updates the kernel LZO code to the current upsteam version
which features a significant speed improvement - benchmarking the Calgary
and Silesia test corpora typically shows a doubled performance in
both compression and decompression on modern i386/x86_64/powerpc machines.

Signed-off-by: Markus F.X.J. Oberhumer <markus@oberhumer.com>
timer: optimize apply_slack()
__fls(mask) is equivalent to find_last_bit(&mask, BITS_PER_LONG), but cheaper.
find_last_bit was showing up high on the list when I was profiling for stalls
on icache misses on a system with very small cache size (MIPS).
slub.c: little tweak for performance improvements
Signed-off-by: franciscofranco <franciscofranco.1990@gmail.com>
usb-gadget: avoid usb configuraiton drop on ADB cable disconnect