msm_mpdecision: offload definitions to header

Change-Id: If6d44ec7d54d02762d58d34cc191f75040b4f7de
Signed-off-by: Dennis Rassmann <showp1984@gmail.com>
msm_mpdecision: fix definitions for earlysuspend/lcd callback switch

Change-Id: I1ee32e157164b56461a0acc3a27fcec8f1d78e08
Signed-off-by: Dennis Rassmann <showp1984@gmail.com>
msm_mpdecision: fix whitespaces throughout the file to comply with linux coding styles

Change-Id: I53cfda7955595ccdf9932c3dc2ba3ef4b82eacd5
Signed-off-by: Dennis Rassmann <showp1984@gmail.com>
msm_mpdecision: early continue get_slowest_cpu() and _rate() to save some cycles

Change-Id: I5780246408ffddeeea4feed12f43ad4e313e5cdf
Signed-off-by: Dennis Rassmann <showp1984@gmail.com>
msm_mpdecision: move startdelay to init to save cycles on each work call

Change-Id: Ie7d4ea96fad00f35cbb4b199fe8c25edfc002ff7
Signed-off-by: Dennis Rassmann <showp1984@gmail.com>
msm_mpdecision: also verify that boost frequencies are > minfreq

Change-Id: I5b06ec076cc7a67bc2bee342947166b9267ea56d
Signed-off-by: Dennis Rassmann <showp1984@gmail.com>
msm_mpdecision: fix boost_time not respecting sysfs changes
This fixes issue #17

Change-Id: I395e4d47b74d9a28fe6a7d2c1887f12d44f29bb4
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

Change-Id: I66b9c459178d2f5e1c9f66883b16f7e49814590f
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

Change-Id: I275057e3aac15c00d0e53d2e3cc79eb02ac626f3
Signed-off-by: Dennis Rassmann <showp1984@gmail.com>
fix another bunch of warnings I missed

thanks showmp

Change-Id: I5a15c646977b03c6e54a5b4eb22225c32828ce83
drivers/net/wireless/bcmdhd/bcmutils.c: fix: warning: ‘ep’ may be used uninitialized in this function

Change-Id: Ic4c27708145e5a7822ef12d4252a0983a1f9e13a
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.

Change-Id: I385f0041fb6619fe43fb3419123f1600e6a91836
Signed-off-by: Dennis Rassmann <showp1984@gmail.com>
msm_mpdecision: add locking to early_suspend related code, even if we do not use it

Change-Id: I6f60c56e3257b92f188536792728fa999bf574ed
Signed-off-by: Dennis Rassmann <showp1984@gmail.com>
cpu: noop nonboot_cpu calls if MSM_MPDEC is compiled

Change-Id: Ib0da6f4763828c5c49cceb70bdfbdf129eb9f470
Signed-off-by: Dennis Rassmann <showp1984@gmail.com>
mdpec: fix missing ifdefs when compiling with earlysuspend

Change-Id: I2240d242c94656950a18f5f9715d793938fa8c8d
Signed-off-by: Dennis Rassmann <showp1984@gmail.com>
msm_mpdecision: boost freqs are arch dependent too

Change-Id: Icd4e5bf34143067d304c6d3fb58be4e6918313b8
Signed-off-by: Dennis Rassmann <showp1984@gmail.com>
fix warning: ‘subbuf.pages’ may be used uninitialized in this function [-Wmaybe-uninitialized]

Change-Id: I0aaa7ccb4a29ec58d7d05e24c19f22c8cc50c8cb
SELinux: Fix memory leak upon loading policy

commit 8ed814602876bec9bad2649ca17f34b499357a1c upstream.

Hello.

I got below leak with linux-3.10.0-54.0.1.el7.x86_64 .

[  681.903890] kmemleak: 5538 new suspected memory leaks (see /sys/kernel/debug/kmemleak)

Below is a patch, but I don't know whether we need special handing for undoing
ebitmap_set_bit() call.
----------
>>From fe97527a90fe95e2239dfbaa7558f0ed559c0992 Mon Sep 17 00:00:00 2001
From: Tetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp>
Date: Mon, 6 Jan 2014 16:30:21 +0900
Subject: SELinux: Fix memory leak upon loading policy

Commit 2463c26d "SELinux: put name based create rules in a hashtable" did not
check return value from hashtab_insert() in filename_trans_read(). It leaks
memory if hashtab_insert() returns error.

  unreferenced object 0xffff88005c9160d0 (size 8):
    comm "systemd", pid 1, jiffies 4294688674 (age 235.265s)
    hex dump (first 8 bytes):
      57 0b 00 00 6b 6b 6b a5                          W...kkk.
    backtrace:
      [<ffffffff816604ae>] kmemleak_alloc+0x4e/0xb0
      [<ffffffff811cba5e>] kmem_cache_alloc_trace+0x12e/0x360
      [<ffffffff812aec5d>] policydb_read+0xd1d/0xf70
      [<ffffffff812b345c>] security_load_policy+0x6c/0x500
      [<ffffffff812a623c>] sel_write_load+0xac/0x750
      [<ffffffff811eb680>] vfs_write+0xc0/0x1f0
      [<ffffffff811ec08c>] SyS_write+0x4c/0xa0
      [<ffffffff81690419>] system_call_fastpath+0x16/0x1b
      [<ffffffffffffffff>] 0xffffffffffffffff

However, we should not return EEXIST error to the caller, or the systemd will
show below message and the boot sequence freezes.

  systemd[1]: Failed to load SELinux policy. Freezing.

Change-Id: Id6c9bf7dc7df514f141ecf1d9c4c17be2c0ac2c8
Signed-off-by: Tetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp>
Acked-by: Eric Paris <eparis@redhat.com>
Signed-off-by: Paul Moore <pmoore@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: franciscofranco <franciscofranco.1990@gmail.com>
Bluetooth: Prevent Bluetooth L2CAP Remote Heap Memory Corruption

A remote user can provide a small value for the command size field in
the command header of an l2cap configuration request, resulting in an
integer underflow when subtracting the size of the configuration request
header.  This results in copying a very large amount of data via
memcpy() and destroying the kernel heap.  Check for underflow.

Change-Id: Id089d9799666090fb1bda6fec158dbda809a6a29
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
Signed-off-by: franciscofranco <franciscofranco.1990@gmail.com>
kernel: cgroup: push rcu read locking from css_is_ancestor() to callsite

Library functions should not grab locks when the callsites can do it,
even if the lock nests like the rcu read-side lock does.

Push the rcu_read_lock() from css_is_ancestor() to its single user,
mem_cgroup_same_or_subtree() in preparation for another user that may
already hold the rcu read-side lock.

Change-Id: I0ec7ec0059ed588d8f85bc9be8fdc42ce0ca7f5d
Signed-off-by: Johannes Weiner <hannes@cmpxchg.org>
Cc: Konstantin Khlebnikov <khlebnikov@openvz.org>
Acked-by: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
Acked-by: Michal Hocko <mhocko@suse.cz>
Acked-by: Li Zefan <lizf@cn.fujitsu.com>
Cc: Li Zefan <lizf@cn.fujitsu.com>
Cc: Tejun Heo <tj@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Git-commit: 91c63734f6908425903aed69c04035592f18d398
Git-repo: git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Laura Abbott <lauraa@codeaurora.org>
Signed-off-by: franciscofranco <franciscofranco.1990@gmail.com>