dtbtool: simplify code. reducing indenting.

this tidy is in preparation for adding a stat call
instead of relying upon readdir.

Change-Id: Ibdc28c43218e2c67434a4580c61b91162e1169a6
dtbtool: fix for filesystems that don't return d_type from readdir

readdir() doesn't return d_type for all filesystems, in particular XFS
doesn't fill in this field. fix by using stat() instead of d_type to
determine if a dtb is a regular file. code is also rearranged slightly
to avoid doing a redundant stat().

Change-Id: I26b402f517cf8ecefa78d8ae45e51219b333b682
power: Add support for CPU boost hint

Change-Id: I07c3e8daf8a5f3b568e27334f26d4ba8f4cf40c4
power: Kill logspam

Change-Id: Icdbc3113f034ba1845762ea964e967fa270b5a15
power: Add support for SET_PROFILE hints

 * Add support for system performance profiles.
 * Uses mpctl to configure the CPUs in the appropriate modes.
 * PERFORMANCE = all cores at max
 * POWER_SAVE = max two cores at non-turbo voltage
 * If a custom profile is set, don't honor any other hints
 * Clean up the code and firm up the locking.

Change-Id: Ie6acada805780c9ae6e6bc2002843aef638ca63b
power: Disable the 8974pro-specific display on/off path

 * It's now handled by mpctl directly, and this code does not correctly
   handle the interactive governor. Just disable it as the main
   function does everything we need.

Change-Id: I8fdf9d80bfbf940b55bbe962c1e7a0829bcec14c