For example, disable cpu1 by:
echo 0 > /sys/devices/system/cpu/cpu1/online
And re-enable it by:
echo 1 > /sys/devices/system/cpu/cpu1/online