smp: add func to IPI cpus based on parameter func