Revert "Revert "sched/rt: Remove redundant nr_cpus_allowed test""

This reverts commit 7053e7360403644b8795597fa382af300cdd1120.
Revert " CHROMIUM: mm: Fix calculation of dirtyable memory"

This reverts commit 1dc251881e124ce0ca99683a19d64f606d152a92.