Improvements from linaro

Signed-off-by: dragon <dragon7780@hotmail.nl>