alucard_hotplug:
* Use TIMER DEFERRABLE workqueue.
* Disabled rq calc when phone is suspended.
* Use mod_delayed_work for RQ calc.
* Optimized code
Alucard HotPlug: code style cleanup. @Alucard24 please full sync.

from:
cleanfile: arch/arm/mach-msm/alucard_hotplug.c
arch/arm/mach-msm/alucard_hotplug.c:223: line exceeds 79 characters (86)
arch/arm/mach-msm/alucard_hotplug.c:236: line exceeds 79 characters (80)
arch/arm/mach-msm/alucard_hotplug.c:270: line exceeds 79 characters (84)
arch/arm/mach-msm/alucard_hotplug.c:281: line exceeds 79 characters (94)
arch/arm/mach-msm/alucard_hotplug.c:306: line exceeds 79 characters (189)
arch/arm/mach-msm/alucard_hotplug.c:316: line exceeds 79 characters (83)
arch/arm/mach-msm/alucard_hotplug.c:320: line exceeds 79 characters (191)
arch/arm/mach-msm/alucard_hotplug.c:322: line exceeds 79 characters (81)
arch/arm/mach-msm/alucard_hotplug.c:323: line exceeds 79 characters (83)
arch/arm/mach-msm/alucard_hotplug.c:324: line exceeds 79 characters (85)
arch/arm/mach-msm/alucard_hotplug.c:347: line exceeds 79 characters (89)
arch/arm/mach-msm/alucard_hotplug.c:416: line exceeds 79 characters (86)
arch/arm/mach-msm/alucard_hotplug.c:420: line exceeds 79 characters (93)
arch/arm/mach-msm/alucard_hotplug.c:431: line exceeds 79 characters (108)
arch/arm/mach-msm/alucard_hotplug.c:490: line exceeds 79 characters (89)
arch/arm/mach-msm/alucard_hotplug.c:530: line exceeds 79 characters (89)
arch/arm/mach-msm/alucard_hotplug.c:531: line exceeds 79 characters (105)
arch/arm/mach-msm/alucard_hotplug.c:532: line exceeds 79 characters (81)
arch/arm/mach-msm/alucard_hotplug.c:533: line exceeds 79 characters (105)
arch/arm/mach-msm/alucard_hotplug.c:534: line exceeds 79 characters (105)
arch/arm/mach-msm/alucard_hotplug.c:535: line exceeds 79 characters (129)
arch/arm/mach-msm/alucard_hotplug.c:537: line exceeds 79 characters (121)
arch/arm/mach-msm/alucard_hotplug.c:541: line exceeds 79 characters (81)
arch/arm/mach-msm/alucard_hotplug.c:748: line exceeds 79 characters (92)
arch/arm/mach-msm/alucard_hotplug.c:750: line exceeds 79 characters (101)
arch/arm/mach-msm/alucard_hotplug.c:889: line exceeds 79 characters (86)

to NONE...

Conflicts:
	arch/arm/mach-msm/alucard_hotplug.c
qseecom: Just check current bus scaling mode in qseecom_suspend

In current qseecom_suspend function, qseecom will scale down bus
bandwidth if both of accumultive mode and current mode are not
INACTIVE. But if device goes into suspend before bus scaling timeout
happens, the accumulative mode may be zero but current mode is
still not INACTIVE. This may prevent the device going to suspend,
thus, make a change to just check current bus scaling mode in
qseecom_suspend.

Signed-off-by: Zhen Kong <zkong@codeaurora.org>
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
qseecom: Add boundary checks for offset within message.

Qseecom driver does not have boundary checks for offset within the
message. So this patch add checks to validate the offsets sent by
client to modify data within the command request message and it
should not exceed the memory allocated for that message.

Signed-off-by: Mona Hossain <mhossain@codeaurora.org>
Signed-off-by: Mallikarjuna Reddy Amireddy <mamire@codeaurora.org>
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
writeback: increase bdi_min_ratio to 5

Signed-off-by: Francisco Franco <franciscofranco.1990@gmail.com>
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
kernel: use the gnu89 standard explicitly and remove pipe flag

Sasha Levin reports:
 "gcc5 changes the default standard to c11, which makes kernel build
  unhappy

  Explicitly define the kernel standard to be gnu89 which should keep
  everything working exactly like it was before gcc5"

There are multiple small issues with the new default, but the biggest
issue seems to be that the old - and very useful - GNU extension to
allow a cast in front of an initializer has gone away.

Patch updated by Kirill:
 "I'm pretty sure all gcc versions you can build kernel with supports
  -std=gnu89.  cc-option is redunrant.

  We also need to adjust HOSTCFLAGS otherwise allmodconfig fails for me"

Note by Andrew Pinski:
 "Yes it was reported and both problems relating to this extension has
  been added to gnu99 and gnu11.  Though there are other issues with the
  kernel dealing with extern inline have different semantics between
  gnu89 and gnu99/11"

End result: we may be able to move up to a newer stdc model eventually,
but right now the newer models have some annoying deficiencies, so the
traditional "gnu89" model ends up being the preferred one.

Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
Singed-off-by: Kirill A. Shutemov <kirill.shutemov@linux.intel.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>