UPSTREAM: coredump: add new %P variable in core_pattern

Add a new %P variable to be used in core_pattern.  This variable contains
the global PID (PID in the init namespace) as %p contains the PID in the
current namespace which isn't always what we want.

The main use for this is to make it easier to handle crashes that happened
within a container.  With that new variables it's possible to have the
crashes dumped into the container or forwarded to the host with the right
PID (from the host's point of view).

BUG=chromium:351568
TEST=`cbuildbot link-release` passes

Signed-off-by: Stphane Graber <stgraber@ubuntu.com>
Reported-by: Hans Feldt <hans.feldt@ericsson.com>
Cc: Alexander Viro <viro@zeniv.linux.org.uk>
Cc: Eric W. Biederman <ebiederm@xmission.com>
Cc: Andy Whitcroft <apw@canonical.com>
Acked-by: Serge E. Hallyn <serge.hallyn@ubuntu.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Mike Frysinger <vapier@chromium.org>
(cherry picked from commit 65aafb1e7484b7434a0c1d4c593191ebe5776a2f)

Change-Id: I3521e781c226c9fb73b16be6f207fd0dcece9229
Previous-Reviewed-on: https://chromium-review.googlesource.com/190020
(cherry picked from commit d93d643d22e470fa2438d778e29773c0c30ae436)
Reviewed-on: https://chromium-review.googlesource.com/190504
Reviewed-by: Benson Leung <bleung@chromium.org>
Commit-Queue: Mike Frysinger <vapier@chromium.org>
Tested-by: Mike Frysinger <vapier@chromium.org>
(cherry picked from commit c2676d125f82f4dbe12059cbe6d84adc48b1802f)
Reviewed-on: https://chromium-review.googlesource.com/190989
Tested-by: Jongpil Jung <jongpil19.jung@samsung.com>
Commit-Queue: Jongpil Jung <jongpil19.jung@samsung.com>
hack:turn off USB 3.0 power in suspend

In board level test, we check USB power in suspend.
So, I want to turn off USB 3.0 power in suspend.

Change-Id: I439deb2fd89adccde6d489a15102e8a9f989a3c0
Reviewed-on: https://chromium-review.googlesource.com/174967
Reviewed-by: Katie Roberts-Hoffman <katierh@chromium.org>
Commit-Queue: Katie Roberts-Hoffman <katierh@chromium.org>
Tested-by: Katie Roberts-Hoffman <katierh@chromium.org>
(cherry picked from commit 18c6432585495e47ec7414b0d1f36b18949d2b6d)
Reviewed-on: https://chromium-review.googlesource.com/190999
Tested-by: Jongpil Jung <jongpil19.jung@samsung.com>
Commit-Queue: Jongpil Jung <jongpil19.jung@samsung.com>
mcpm: exynos: Fix races in exynos_power_up()

There were two problems in exynos_power_up():

1. We were setting the mcpm_entry_point _after_ we powered things up.
   If there was too long of a delay here it's possible that a CPU
   might come up and look at the old entry point.

2. We were relying on the mcpm_cluster_state taking a little while to
   take effect.  When deciding whether to adjust cci settings we were
   checking whether a cluster was currently down.  However, we really
   wanted to know whether the cluster was down at the start of the
   block of code and we were just getting lucky that our powering on
   of the cluster hadn't yet taken effect.

BUG=chrome-os-partner:26867
TEST=Sprinkle udelay(1000) calls in exynos_power_up() and see that
system boots OK and suspend/resumes OK.

Change-Id: If751c6a7f232295e736e9ba1b3f1379cb6d01b7c
Signed-off-by: Doug Anderson <dianders@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/190316
Reviewed-by: Andrew Bresticker <abrestic@chromium.org>
Reviewed-by: <thomas.ab@samsung.com>
Commit-Queue: Wonjoon Lee <woojoo.lee@samsung.com>
(cherry picked from commit 5f9a5273611a34a6cba96677ac85504f4eb8d823)
Reviewed-on: https://chromium-review.googlesource.com/190459
(cherry picked from commit e387c60b76a53d74f50e2c52baafa934f9e53ab8)
Reviewed-on: https://chromium-review.googlesource.com/190998
Tested-by: Jongpil Jung <jongpil19.jung@samsung.com>
Commit-Queue: Jongpil Jung <jongpil19.jung@samsung.com>
Revert "ARM: dts: use actual lcd dimensions for peach-pi"

This reverts commit 8d20ae91a128cc6aeada20e6a3186ba46e121e4b.

Screen is not correct on pi. TOT has more patches.
So, Screen is correct without revert.
But we need revert the patch for factory branch.

TEST=build factory image. Check UI on pi.

Change-Id: I7d21025d076b1403f2d51a7b86ffaefaa5a3fbfa
Reviewed-on: https://chromium-review.googlesource.com/191230
Reviewed-by: Katie Roberts-Hoffman <katierh@chromium.org>
Commit-Queue: Jongpil Jung <jongpil19.jung@samsung.com>
Tested-by: Jongpil Jung <jongpil19.jung@samsung.com>