firmware: Fix to compile prebuild firmware only once
include/asm-generic: Change per_cpu_offset to take last element of array instead of returning 0 if out of bounds