Benjamin Herrenschmidt a619e59c07 powerpc/mm: Optimize detection of thread local mm's
Instead of comparing the whole CPU mask every time, let's
keep a counter of how many bits are set in the mask. Thus
testing for a local mm only requires testing if that counter
is 1 and the current CPU bit is set in the mask.

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
2017-08-23 22:28:38 +10:00
..
2017-07-20 12:31:04 +02:00
2013-04-18 13:03:53 +10:00
2015-05-28 15:31:53 +02:00
2016-06-21 15:30:56 +10:00
2014-04-09 12:53:28 +10:00
2012-03-28 18:30:02 +01:00
2017-03-28 18:23:54 -04:00
2017-08-15 22:55:58 +10:00
2011-11-08 14:51:46 +11:00
2015-01-12 05:04:13 -08:00
2015-02-03 18:47:18 +01:00
2016-03-04 23:50:27 -06:00
2016-09-09 16:18:07 +10:00
2017-06-13 12:53:35 -04:00
2016-03-01 19:27:20 +11:00
2017-04-21 21:08:47 +10:00
2017-06-28 06:54:33 -07:00
2015-02-23 14:52:04 +11:00
2016-08-05 09:00:54 -04:00
2011-07-26 16:49:47 -07:00
2013-12-09 11:40:25 +11:00
2016-08-05 09:00:54 -04:00
2017-03-31 23:10:00 +11:00
2016-09-20 20:57:12 +10:00
2011-03-31 11:26:23 -03:00
2016-06-14 13:58:26 +10:00
2017-07-07 13:55:45 -07:00
2016-06-14 13:58:26 +10:00
2016-06-14 13:58:26 +10:00
2017-01-26 17:49:34 -06:00
2017-08-10 23:32:18 +10:00
2013-11-06 14:13:49 +11:00
2011-03-31 11:26:23 -03:00
2016-07-21 18:51:42 +10:00
2017-03-16 20:45:53 +11:00
2017-05-05 11:36:44 -07:00
2016-06-14 13:58:26 +10:00
2017-03-16 20:45:53 +11:00
2014-02-17 11:19:37 +11:00
2015-05-05 13:35:39 -06:00