Hello Meet Thakkar,
You can manage the cpu frequency and status on /sys/devices/system/cpu/cpux where x is the number of the core.
You may then turn off the second core using something like:
echo 0 > /sys/devices/system/cpu/cpu1/online
I hope this helps!
Regards,