init: Allow for arbitrary long /proc/cpuinfo output

get_hardware_name() uses a fixed size buffer to slurp the contents of
/proc/cpuinfo into and with newer multicore systems this is not big
enough, leading to the inability to pick up the hardware name.

Fix this by using a dynamically allocated, exponentially growing buffer.

Change-Id: I7bf48a695a9667789c267a59ce8c6431f2d3bb0c
Signed-off-by: Jon Medhurst <tixy@linaro.org>
corkscrew: Fix build with gcc 4.8

gcc 4.8 has a new warning for unused parameters - we need to override
-Werror on that.

Change-Id: Ia2a831a96750ae105440291c636b80382a5702fa
Signed-off-by: Bernhard Rosenkränzer <Bernhard.Rosenkranzer@linaro.org>
rootdir: init.rc: Fix for "add_tid_to_cgroup failed to write" warnings

Logcat is full of warnings like:

 W/SchedPolicy( 2013): add_tid_to_cgroup failed to write '2371' (Permission denied); policy=1

This is fixed by giving /dev/cpuctl group write permissions, which was
surely the original intention of the init.rc setup as this is done for
the sub-directories it creates.

This fixes bug launchpad bug #1037611

Change-Id: I47ff539ef4dd9922aba0be67dbf8bd4f0a234163
Signed-off-by: Jon Medhurst <tixy@linaro.org>