Re: [RFC PATCH 1/5] numa: introduce per-cgroup numa balancing locality, statistic

From: Peter Zijlstra
Date: Tue Apr 23 2019 - 04:47:31 EST


On Mon, Apr 22, 2019 at 10:11:24AM +0800, çè wrote:
> + p->numa_faults_locality[mem_node == numa_node_id() ? 4 : 3] += pages;

Possibly: 3 + !!(mem_node = numa_node_id()), generates better code.