taskset is a linux application to do the affinity.
It could make a linux program running on the special core.
Of course you need to add the isolcpus kernel parameter to iosolate one core. At the same time you need to change the interrupt mask to avoid the interrupt in this core.
These two steps make this core dedicate for you. If you don't need this core dedicate for you. You can skip these two steps. Just ask tasket to help you.
The following is the taskset running stress test on CPU1. you can see the CPU1 is isolated and the program stess is running on this core.
taskset 2 ./stress -c 4 &
top
Mem: 58320K used, 707652K free, 0K shrd, 3784K buff, 15920K cached
CPU0: 0.0% usr 1.0% sys 0.0% nic 98.9% idle 0.0% io 0.0% irq 0.0% sirq
CPU1: 100% usr 0.0% sys 0.0% nic 0.0% idle 0.0% io 0.0% irq 0.0% sirq
CPU2: 0.0% usr 0.0% sys 0.0% nic 100% idle 0.0% io 0.0% irq 0.0% sirq
CPU3: 0.0% usr 0.0% sys 0.0% nic 100% idle 0.0% io 0.0% irq 0.0% sirq
Note: Have to point here. This is linux knowledge not i.MX. Please check the linux document for more details.