Created a new function called set_cpu_min_max which will set the cores specified using a workqueue (Thanks to ktoonsez)