Revert "lowmemorykiller: Account for highmem during kswapd reclaim"

This reverts commit ab85d9ea25a45e56a66b85c9643d2ae3cec2cf1c.
Revert LOWMEMKILL short to int
Revert "staging:android:lmk: Use for_each_thread helper"

This reverts commit 51754ab23c701858a24008ff835502cf7fd0b700.
Revert "staging: android: lmk: check TIF directly"

This reverts commit a9265b8f6e87fabcb94b911c455fc24da018ff5d.
Revert "staging: android: lmk: skip if killed by lmk"

This reverts commit 41892b2023a88b17dc41755c9d203e13be7a3e43.
Revert "trace: memkill: provide fixed zone info columns."

This reverts commit c242df261048666d92f4571cc55ac8d2a139a6ba.
Revert "trace: memkill: per-zone page state for LMK"

This reverts commit e56bc013dd9ef6c5e77ece6918271e65469ae439.
Revert "mm, oom: change type of oom_score_adj to short"

This reverts commit fdc2401212f0840626867a4f8ec8e93dfd134a9a.
Revert "Disable gentle_fair_sleepers & arch_power in kernel/sched/fair.c"

This reverts commit 6af95527d7d9dd3ad18fe7876cee10fb95ce0742.
Revert "Disable WIFI Driver Debug. works good no need to debug."

This reverts commit 7bdd3d1f692243b7b3d449a201098976182807ab.
LOW MEM KILLIER: restore stock array sets.
AUDIO POLICY: restored to STOCK + USB AUDIO only.
alucard cpu governor: cpu rate optimization. alucard hotplug governor: huge code optimization.
alucard cpu governor: removed cpufreq_relation parameter.
Kernel 8.7 SOD PURGE #1
Disable KEXEC as we cant dual boot 2 kernels, locked bootloader!
CMA: Release reserved 16MB RAM back to Low mem pool. LMK suffer.
Config Cleanup
staging: binder: do not debug errors

Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
smp.h: Use local_irq_{save,restore}() in !SMP version of on_each_cpu().

Thanks to commit ("init: scream bloody murder if interrupts
are enabled too early"), "bloody murder" is now being screamed.

With a MIPS OCTEON config, we use on_each_cpu() in our
irq_chip.irq_bus_sync_unlock() function.  This gets called in early as a
result of the time_init() call.  Because the !SMP version of
on_each_cpu() unconditionally enables irqs, we get:

    WARNING: at init/main.c:560 start_kernel+0x250/0x410()
    Interrupts were enabled early
    CPU: 0 PID: 0 Comm: swapper Not tainted 3.10.0-rc5-Cavium-Octeon+ #801
    Call Trace:
      show_stack+0x68/0x80
      warn_slowpath_common+0x78/0xb0
      warn_slowpath_fmt+0x38/0x48
      start_kernel+0x250/0x410

Suggested fix: Do what we already do in the SMP version of
on_each_cpu(), and use local_irq_save/local_irq_restore.  Because we
need a flags variable, make it a static inline to avoid name space
issues.

[ Change from v1: Convert on_each_cpu to a static inline function, add
  #include <linux/irqflags.h> to avoid build breakage on some files.

  on_each_cpu_mask() and on_each_cpu_cond() suffer the same problem as
  on_each_cpu(), but they are not causing !SMP bugs for me, so I will
  defer changing them to a less urgent patch. ]

Signed-off-by: David Daney <david.daney@cavium.com>
Cc: Ralf Baechle <ralf@linux-mips.org>
Cc: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>