mkbootimg: fix padding calculation for 2ndstage loader

Change-Id: I8db844cbc52896e51886b725fb86fd1b0fa57899
Signed-off-by: Andrew Boie <andrew.p.boie@intel.com>
libusbhost: Fix issue of multiple inotify event at same time.

libusbhost can handle multiple inotify events at same time on Kit kat.
In original implementation, the function-level ret is assigned with
length of read and used for while loop.
if want to add a new watch for subdirectory,inotify_add_watch will
update the function-level ret with watch descriptor.
It impact on while loop to do exit.

Add local result to avoid it.

Change-Id: I101041ccfd54eaac14969a45e90ab2e49bdff578
Signed-off-by: Bo Huang <bo.b.huang@intel.com>
libsysutils: turn on -Werror

- Deal with some -Wunused / -Wunused-variable issues

Change-Id: I428a0032a8743c68c97f528d5f305ba63fee1d29
Merge "libsysutils: turn on -Werror"
Use real time signal for threads instead of SIGURG.

This guarantees that any application is not also using this signal
for some other purpose.

Change-Id: I7c9bbb0ec8bb4e13322ecda951bcd43c6bf6ee1a
libsysutil: turn off -Werror

temporary to work out issue with git_mirror-asop-master build

Change-Id: Ie65c65abb0a70dc134fded15db8b9d98e1701edd
Merge "libsysutil: turn off -Werror"
Merge "Use real time signal for threads instead of SIGURG."
logd: oneline statistics does not report PID gone

- oneline, add check for gone
- Add pidGone() method, which caches the gone status

Change-Id: I8f03daeafb58583c2b08ec6b540486c05da0872d
ueventd: Ueventd changes the permission of sysfs files for max/min
cpufreq

The owner and permissions for the sysfs file
/sys/devices/system/cpu*/cpufreq/scaling_max/min_freq is changed.
This would allow the PowerHAL to change the max/min cpufreq even after
the associated CPU's are hotplugged out and back in.

Change-Id: Ibe0b4aaf3db555ed48e89a7fcd0c5fd3a18cf233
Signed-off-by: Ruchi Kandoi <kandoiruchi@google.com>
Merge "ueventd: Ueventd changes the permission of sysfs files for max/min cpufreq"
init: 64-bit build issue

(cherry pick from Icc5344abc184adf4247175d85b2da08af4636e49)

Change-Id: I88b0c9b20720ac62ebae8359ded4ab77b4ebcdde
libsysutil: turn on -Werror (part deux)

- x86_64 format warnings

Change-Id: I81c2702f564bcada946f6a10f34bbf34c90f766b
fastboot: Make tags_offset a command line option.

cherry picked from commit bdf513c5f25b3c2051af737c37a7734c4559208e

Change-Id: I4ceca528f88cc8ede5742f8a67bec972e41eebe7
Merge "logd: oneline statistics does not report PID gone"
Merge "init: 64-bit build issue"
Merge "libsysutil: turn on -Werror (part deux)"
Merge "fastboot: Make tags_offset a command line option."
Merge "libusbhost: Fix issue of multiple inotify event at same time."
libcutils: turn on -Werror

- Deal with some -Wunused / -Wunused-variable issues

Change-Id: I28c23fb213382a392ec30935749fb359e072d664