Add CONFIG_NETFILTER_XT_TARGET_TCPMSS and bump version

Change-Id: Iea360d2887e9ffb5cbe22f64e849cd8ce6f48b32
Signed-off-by: Josue Rivera <prbassplayer@gmail.com>
Squash updates for MpDecision and Thermald from showp

msm_mpdecision: add fb callback, keep earlysuspend

Signed-off-by: Dennis Rassmann <showp1984@gmail.com>

thermal/mpdec: export throttle indicator and don't input boost if we are throttled

Signed-off-by: Dennis Rassmann <showp1984@gmail.com>

Conflicts:
	drivers/thermal/bricked_thermal.c

msm_mpdecision: switch to lcd callback and improve sus/res code

Signed-off-by: Dennis Rassmann <showp1984@gmail.com>

msm_mpdecision: remove per_cpu suspend value
This is unneccessary and produces overhead when checking/setting over loops

Signed-off-by: Dennis Rassmann <showp1984@gmail.com>

msm_mpdecision: offload definitions to header

Signed-off-by: Dennis Rassmann <showp1984@gmail.com>

Conflicts:
	arch/arm/mach-msm/msm_mpdecision.c

thermal: when we restore the original limits use the norm_min freq from mpdecision inputboost

Signed-off-by: Dennis Rassmann <showp1984@gmail.com>

msm_mpdecision: fix definitions for earlysuspend/lcd callback switch

Signed-off-by: Dennis Rassmann <showp1984@gmail.com>

msm_mpdecision: fix whitespaces throughout the file to comply with linux coding styles

Signed-off-by: Dennis Rassmann <showp1984@gmail.com>

Conflicts:
	arch/arm/mach-msm/msm_mpdecision.h

msm_mpdecision: early continue get_slowest_cpu() and _rate() to save some cycles

Signed-off-by: Dennis Rassmann <showp1984@gmail.com>

msm_mpdecision: move startdelay to init to save cycles on each work call

Signed-off-by: Dennis Rassmann <showp1984@gmail.com>

msm_mpdecision: also verify that boost frequencies are > minfreq

Signed-off-by: Dennis Rassmann <showp1984@gmail.com>

msm_mpdecision: fix boost_time not respecting sysfs changes
This fixes issue #17

Signed-off-by: Dennis Rassmann <showp1984@gmail.com>

msm_mpdecision: add missing #ifdefs around thermal related code
This fixes issue #19 (compilation without thermal)

Signed-off-by: Dennis Rassmann <showp1984@gmail.com>

msm_mpdecision: add input boost triggers
This fixes issue #27 - No boost event triggered
&
issue #28 - Power button should trigger boost_freq

Signed-off-by: Dennis Rassmann <showp1984@gmail.com>

msm_mpdecision: set idle_freq arch specific
This fixes issue #31 - idle frequency needs changing when switching archs

Signed-off-by: Dennis Rassmann <showp1984@gmail.com>

msm_mpdecision: fix early_suspend compilation

This was not changed because we do not compile with early suspend
and hence didn't encounter any errors. Fix it.

Signed-off-by: Dennis Rassmann <showp1984@gmail.com>

msm_mpdecision: add locking to early_suspend related code, even if we do not use it

Signed-off-by: Dennis Rassmann <showp1984@gmail.com>

cpu: noop nonboot_cpu calls if MSM_MPDEC is compiled

Signed-off-by: Dennis Rassmann <showp1984@gmail.com>

msm_mpdecision: opt out early if we are thermal throttled

Signed-off-by: Dennis Rassmann <showp1984@gmail.com>

mdpec: fix missing ifdefs when compiling with earlysuspend

Signed-off-by: Dennis Rassmann <showp1984@gmail.com>

msm_mpdecision: boost freqs are arch dependent too

Change-Id: I48b3f1fda07cc349feafcc0d4a68d5039be57e2b
Signed-off-by: Dennis Rassmann <showp1984@gmail.com>
Signed-off-by: Josue Rivera <prbassplayer@gmail.com>
Update script

Change-Id: Ic3289c0e003a9a671b8298e8076556cf797ab989
Signed-off-by: Josue Rivera <prbassplayer@gmail.com>
Makefiles: Add Linaro Build Flags

Change-Id: I03a6805962fd1713e5672f9c0f126de1b2663d36
arm/Makefile: Optimize and add New arm flags

Change-Id: I95295f29917804fc64ad048e15cb94ff1ea8b0e4
config: Remove unused MEDIA_TUNER option

Change-Id: I7d43ba75f9cff551200866e561932dd277272a5a
Signed-off-by: Stratos Karafotis <stratosk@semaphore.gr>
core.c: Disable Software CRC check

Change-Id: Ib5135c526b3cf7ce23b52f86c15d862de9bc5ef8
Enable arm sha1 and aes routines

Change-Id: Ib1e9038800737780408b068895222ff1c383211e
Signed-off-by: Josue Rivera <prbassplayer@gmail.com>
Remove unused governours

Change-Id: I81d14fad64d0cea6c3cac023dfdfc55248b913b5
Signed-off-by: Josue Rivera <prbassplayer@gmail.com>
AIO: Don't plug the I/O queue in do_io_submit() Asynchronous I/O latency to a solid-state disk greatly increased between the 2.6.32 and 3.0 kernels. By removing the plug from do_io_submit(), we observed a 34% improvement in the I/O latency.

Unfortunately, at this level, we don't know if the request is to
a rotating disk or not.

Change-Id: I7101df956473ed9fd5dcff18e473dd93b688a5c1
Signed-off-by: Dave Kleikamp <dave.kleikamp@oracle.com>
Cc: linux-aio@kvack.org
Cc: Chris Mason <chris.mason@oracle.com>
Cc: Jens Axboe <axboe@kernel.dk>
Cc: Andi Kleen <ak@linux.intel.com>
Cc: Jeff Moyer <jmoyer@redhat.com>
Signed-off-by: Francisco Franco <franciscofranco.1990@gmail.com>
writeback: fix race that cause writeback hung

There is a race between mark inode dirty and writeback thread, see the
following scenario.  In this case, writeback thread will not run though
there is dirty_io.

__mark_inode_dirty()                                          bdi_writeback_workfn()
	...                                                       	...
	spin_lock(&inode->i_lock);
	...
	if (bdi_cap_writeback_dirty(bdi)) {
	    <<< assume wb has dirty_io, so wakeup_bdi is false.
	    <<< the following inode_dirty also have wakeup_bdi false.
	    if (!wb_has_dirty_io(&bdi->wb))
		    wakeup_bdi = true;
	}
	spin_unlock(&inode->i_lock);
	                                                            <<< assume last dirty_io is removed here.
	                                                            pages_written = wb_do_writeback(wb);
	                                                            ...
	                                                            <<< work_list empty and wb has no dirty_io,
	                                                            <<< delayed_work will not be queued.
	                                                            if (!list_empty(&bdi->work_list) ||
	                                                                (wb_has_dirty_io(wb) && dirty_writeback_interval))
	                                                                queue_delayed_work(bdi_wq, &wb->dwork,
	                                                                    msecs_to_jiffies(dirty_writeback_interval * 10));
	spin_lock(&bdi->wb.list_lock);
	inode->dirtied_when = jiffies;
	<<< new dirty_io is added.
	list_move(&inode->i_wb_list, &bdi->wb.b_dirty);
	spin_unlock(&bdi->wb.list_lock);

	<<< though there is dirty_io, but wakeup_bdi is false,
	<<< so writeback thread will not be waked up and
	<<< the new dirty_io will not be flushed.
	if (wakeup_bdi)
	    bdi_wakeup_thread_delayed(bdi);

Writeback will run until there is a new flush work queued.  This may cause
a lot of dirty pages stay in memory for a long time.

Change-Id: Ia894122d230f30ff2a9aa3470b2d72441c5b2555
Signed-off-by: Junxiao Bi <junxiao.bi@oracle.com>
Reviewed-by: Jan Kara <jack@suse.cz>
Cc: Fengguang Wu <fengguang.wu@intel.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Francisco Franco <franciscofranco.1990@gmail.com>
msm: cpufreq: Only apply driver limits for scaling_min/max_freq writes

When new values are written to scaling_min/max_freq sysfs files, the
current code applies all the limits imposed by various ADJUST and
INCOMPATIBLE notifiers handlers before storing them.

When the ADJUST and/or INCOMPATIBLE notifiers change their limits
frequently, this behavior makes it almost impossible for a
user/userspace process to store the scaling_min/max_freq limits
that go beyond the instantaneous limits imposed by the notifiers.
Since these sysfs nodes are typically meant to set limits that need
to be enforced for the foreseeable future, this is not a very user
friendly behavior.

So, change the behavior to only apply limits that are enforced by
the cpufreq driver. Typically, these are just the absolute limits
of the HW and don't change very often.

Change-Id: I1ccfaa2d1ee4ea595f882485d359dbdb407a0176
Signed-off-by: Deepak Katragadda <dkatraga@codeaurora.org>
Signed-off-by: Francisco Franco <franciscofranco.1990@gmail.com>
Linaro 4.8 fixes

Added Linaro 4.8.2 Fixes

Change-Id: I009d6cbdcd3473bd7556e33ca650aaf290e75b65
Bump to 1.2

Change-Id: I7cea540339e82316f6592707b90a862033423e64
Signed-off-by: Josue Rivera <prbassplayer@gmail.com>
Squash Stratosk's UV control

msm: acpuclock-krait: Add undervolting support

Add undervolting support using 3 module parameters:
- lower_uV: undervolting value for lower frequencies
- upper_uV: undervolting value for upper frequencies
- upper_khz_thers: above this frequency upper_uV will be used. Else
lower_uV will be used.

Undervolting value is subtracted from stock voltage. The final voltage
for each frequency is calulated:
Vdd(final) = Vdd(core) + boost_uV - uV

Also debugfs (acpuclk/acpu_table) is used to show the acpu table
frequencies and voltages.

Signed-off-by: Stratos Karafotis <stratosk@semaphore.gr>

msm: acpuclock-krait: Replace 'upper' with 'higher'

Signed-off-by: Stratos Karafotis <stratosk@semaphore.gr>

msm: acpuclock-krait: Use conditional directives for debufs parts

Signed-off-by: Stratos Karafotis <stratosk@semaphore.gr>

msm: acpuclock-krait: Add a column with undervolting value in debugfs

Signed-off-by: Stratos Karafotis <stratosk@semaphore.gr>

msm: acpuclock-krait: Fix type in message

Signed-off-by: Stratos Karafotis <stratosk@semaphore.gr>

msm: acpuclock-krait: Fix checkpatch warnings

Signed-off-by: Stratos Karafotis <stratosk@semaphore.gr>

msm: mako: Change CPU regulators min_uV to 700mV

Thanks to sirxdroid for reporting this.
Thanks to thracemerin for help.

Signed-off-by: Stratos Karafotis <stratosk@semaphore.gr>

msm: cpufreq: Break out early if target frequency is the same as the current

Change-Id: I7b22265e42f7effe9b29db220e05993484fee19c
Signed-off-by: Stratos Karafotis <stratosk@semaphore.gr>
Signed-off-by: Josue Rivera <prbassplayer@gmail.com>
msm: Makefile: we don't need these in mako

Change-Id: Ib254ae3d57353cf3031cb6f2986517416bc7af3e
Signed-off-by: Stratos Karafotis <stratosk@semaphore.gr>
mach-msm: acpuclock-krait: Change the pvs bin retrieval

Change-Id: I1707618d607640ddcf34073c590f165a8b745ba1
Signed-off-by: Stratos Karafotis <stratosk@semaphore.gr>
mach-msm: acpuclock-krait: Fix build error

Change-Id: I2afaef48976b4dd77cc98bfbbca7a915a3722ff8
Signed-off-by: Stratos Karafotis <stratosk@semaphore.gr>
mach-msm: acpuclock-krait: Fix PVS name in table show

Change-Id: Ie6475e104dfa9a257910343132e69de018e9b4fa
Signed-off-by: Stratos Karafotis <stratosk@semaphore.gr>
msm: pm: send notification only for SPC and PC

Currently the pm notification is sent for all the low power
modes of each CPU. Generally the subscriber to this notification
expects to be notified for core power collapse. For example
interrupt controller subscribes this notification to save
and restore its context when entering and exit power collapse
respectively. So this is not necessary for shallow power modes
like WFI and Retention.

This change is to send the notification for only standalone
power collapse of each core and idle power collapse of core0.

Change-Id: I39fb6a6bfb47ca49d6ec8df8cad1fd74424140a0
Signed-off-by: Venkat Devarasetty <vdevaras@codeaurora.org>