Only set SCHED_RESET_ON_FORK flag if the thread is using the default scheduling policy.

Keep nice and policy same as well to reduce the overhead in syscall.


Bug: 370988407
Change-Id: I4d9ef914905da6807339cf2c55650b8188787b43
Test: Build
Flag: com.android.server.power.hint.reset_on_fork_enabled
1 file changed