performance: Add opcodes to limit maximum number of cores

Add opcodes to support the limiting of maximum
number of cores online.

Change-Id: I9c3c33ff0331260d1a2da65568264ccad6d4b7fd
(cherry picked from commit 66b903ae5dab6fa2a82b0a0f18dd6eddbe67bbfe)
(cherry picked from commit c7ba25f528e653f82274686c5c09931759a65f74)
(cherry picked from commit 269ad38159eae5547dc7aeca3c6ede146f9a5abd)