msm-sleeper: change file permissions

Signed-off-by: flar2 <asegaert@gmail.com>
lib: cpu_rmap: avoid flushing all workqueues

In some cases, free_irq_cpu_rmap() is called while holding a lock (eg
rtnl).  This can lead to deadlocks, because it invokes
flush_scheduled_work() which ends up waiting for whole system workqueue
to flush, but some pending works might try to acquire the lock we are
already holding.

This commit uses reference-counting to replace
irq_run_affinity_notifiers().  It also removes
irq_run_affinity_notifiers() altogether.

[akpm@linux-foundation.org: eliminate free_cpu_rmap, rename cpu_rmap_reclaim() to cpu_rmap_release(), propagate kref_put() retval from cpu_rmap_put()]
Signed-off-by: David Decotigny <decot@googlers.com>
Reviewed-by: Ben Hutchings <bhutchings@solarflare.com>
Acked-by: Eric Dumazet <edumazet@google.com>
Reviewed-by: Josh Triplett <josh@joshtriplett.org>
Cc: "David S. Miller" <davem@davemloft.net>
Cc: Or Gerlitz <ogerlitz@mellanox.com>
Acked-by: Amir Vadai <amirv@mellanox.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

Signed-off-by: franciscofranco <franciscofranco.1990@gmail.com>
Really no need for these updates, they cause a FPS regression in games.  Will update these again when the adreno proprietaries are updated.
Revert "msm: kgsl: Handle failure of find_process_private()"

This reverts commit 3c8ff0dc10c45a595be612196612f470a55ee533.
Revert "msm: kgsl: Treat 0x0 as valid GPU pagetable physical address"

This reverts commit 69d8f7ea1ae95cf6898a9838569a551784f5d9e7.
Revert "msm: kgsl: Enhance GFT to avoid hang->recover->hang cycle"

This reverts commit 1ca08404105e6091513e4e592fc45ba977144dbe.
Revert "msm: kgsl: Flush the UCHE when context changes"

This reverts commit 0858526cc1962682f2ecca6522fdf56511ae9e13.
Revert "msm: kgsl: Pass the right timeout to adreno_drawctxt_wait()"

This reverts commit fe7d076196d0fcb763e3c476f637b26ef3bc89bb.
Revert "msm: kgsl: Don't open kgsl device in erroneous case"

This reverts commit c68a4f7c999a6b9dfa9324ed406963bcdb77d9a3.
Revert "msm: kgsl: Fix the NULL context submission size"

This reverts commit 3c7979d0fad59f81270d92db0f964f301ef070b1.
Revert "msm: kgsl: Don't block on detach if the context is invalid"

This reverts commit dc1f2c52c0310a2561c89522dfae1bc1bf0d06cc.
Revert "msm: kgsl: When switching pagetable use current context ID"

This reverts commit 7f1f863c988779830df7561dc3ce3f599c86f075.
Revert "msm: kgsl: Prevent device start after it is already started"

This reverts commit 8421e456b08ec151ad6f38228fd17ab1c3e57768.
Revert "msm: kgsl: when unmapping from the mmu flush the entire tlb"

This reverts commit 9b7b11a404e93ec1a53acd28332360514735dbd4.
Revert "msm: kgsl: Fix several possible problem spots in the dispatcher"

This reverts commit 57f8fb181a819e2eb1abe5e9e361bb44d3cddbfa.
Revert "msm: kgsl: Force the ME off before reading the microcode"

This reverts commit c1145655269160f8dc82de49236190f38c4ffa3e.
Revert "msm: kgsl: Panic if global timestamp wait fails in context detach"

This reverts commit 5d3c00e91a4e8a319f1f141a918f49f8a351285c.
Revert "msm: kgsl: Ensure signals do not cause waits to end early"

This reverts commit 000c772fea0361d8d3d0786c331d6e6d9e31f481.
cpufreq_hellsactive: sync with hellsgod
intelli_thermal: limit temp 72c, offline cores if temp hits 75c
Revert:  (fix OC issue) "msm-sleeper: save previous max freq, add ex_max_freq interface, loosen permissions"

(reverted from commit 1dbd7d0a85d4aadf8f37ed94574bc5c670a658e4)
update version to 85u-r2 to fix a few bugs