Opportunistic power reassignment between processor and memory in 3D stacks