Files
msm-5.15/include/linux
Alexey Dobriyan f22ef333c3 cpumask: make cpumask_next() out-of-line
Every for_each_XXX_cpu() invocation calls cpumask_next() which is an
inline function:

	static inline unsigned int cpumask_next(int n, const struct cpumask *srcp)
	{
	        /* -1 is a legal arg here. */
	        if (n != -1)
	                cpumask_check(n);
	        return find_next_bit(cpumask_bits(srcp), nr_cpumask_bits, n + 1);
	}

However!

find_next_bit() is regular out-of-line function which means "nr_cpu_ids"
load and increment happen at the caller resulting in a lot of bloat

x86_64 defconfig:
	add/remove: 3/0 grow/shrink: 8/373 up/down: 155/-5668 (-5513)
x86_64 allyesconfig-ish:
	add/remove: 3/1 grow/shrink: 57/634 up/down: 3515/-28177 (-24662) !!!

Some archs redefine find_next_bit() but it is OK:

	m68k		inline but SMP is not supported
	arm		out-of-line
	unicore32	out-of-line

Function call will happen anyway, so move load and increment into callee.

Link: http://lkml.kernel.org/r/20170824230010.GA1593@avx2
Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2017-09-08 18:26:51 -07:00
..
2016-07-08 16:23:11 +02:00
2010-10-15 21:18:59 +02:00
2010-11-23 20:14:46 +00:00
2016-12-22 22:58:37 -05:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2012-10-08 13:50:20 +10:30
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2011-03-11 14:25:50 +00:00
2017-06-08 18:52:36 -07:00
2017-02-10 15:52:24 -05:00
2017-09-08 18:26:49 -07:00
2017-07-17 17:26:14 +02:00
2017-07-06 16:24:33 -07:00
2017-01-25 13:17:47 -05:00
2009-11-20 20:13:39 +01:00
2017-07-03 16:56:28 -06:00
2011-03-31 11:26:23 -03:00
2017-06-05 16:59:12 +02:00
2017-04-18 20:41:12 +02:00
2017-08-31 17:32:38 -04:00
2011-10-29 21:20:22 +02:00
2017-06-22 15:43:47 +01:00
2017-09-04 00:05:22 +02:00
2017-09-04 00:06:02 +02:00
2017-08-10 12:28:57 +02:00
2017-06-09 11:52:07 +02:00
2008-12-25 11:01:43 +11:00
2017-08-24 13:23:03 -07:00
2012-02-20 19:46:36 +11:00
2009-12-10 23:52:01 +00:00
2016-10-28 08:48:16 -06:00
2015-01-21 19:21:30 +01:00
2009-09-14 17:41:42 -07:00
2012-09-30 18:02:20 -07:00
2017-07-17 13:42:48 +02:00
2005-04-16 15:20:36 -07:00
2008-01-28 23:21:18 +01:00
2017-04-27 05:13:04 -04:00
2016-12-05 19:01:16 -05:00
2017-07-07 20:09:10 -04:00
2009-06-18 13:04:05 -07:00
2014-08-06 18:01:24 -07:00
2007-07-10 00:35:17 -04:00
2010-10-25 14:11:37 -07:00
2015-05-12 10:46:53 +02:00
2017-03-21 10:15:47 +02:00
2010-02-09 11:13:56 +01:00
2017-09-08 18:26:46 -07:00
2011-03-31 11:26:23 -03:00
2010-03-07 22:17:09 +01:00
2012-03-26 21:47:19 +02:00
2014-01-16 11:15:50 +01:00
2011-07-01 10:37:15 +02:00
2017-05-18 10:07:41 -04:00
2017-05-18 10:07:40 -04:00
2008-08-02 18:36:10 +01:00
2017-06-21 14:37:12 -04:00
2017-07-10 16:32:34 -07:00
2006-10-10 15:37:22 -07:00
2012-03-20 12:47:48 +01:00
2010-08-09 20:45:05 -07:00
2016-09-14 09:18:09 -06:00
2013-06-17 16:38:57 -07:00
2017-01-05 15:01:55 -06:00
2016-05-11 22:37:54 +02:00
2014-03-13 12:11:00 +10:30
2016-01-28 14:19:12 -08:00
2013-07-26 16:19:48 -07:00
2016-03-22 15:36:02 -07:00
2016-03-22 15:36:02 -07:00
2015-07-28 08:50:42 +01:00
2011-01-24 14:45:11 +10:30
2013-08-28 21:35:14 -07:00
2017-08-14 13:33:39 -07:00
2008-07-04 10:40:05 -07:00
2017-05-03 15:52:10 -07:00
2016-01-15 17:56:32 -08:00
2011-09-16 19:20:20 -04:00
2009-04-06 16:06:26 +01:00
2017-08-01 12:03:10 -07:00
2017-02-24 17:46:57 -08:00
2005-04-16 15:20:36 -07:00
2017-08-28 20:51:22 +02:00
2016-12-06 11:05:46 +01:00
2017-08-18 15:32:01 -07:00
2017-09-08 18:26:49 -07:00
2017-04-24 14:30:46 -04:00
2017-07-13 16:00:15 -04:00
2016-04-25 15:09:11 -04:00
2014-01-25 03:14:05 -05:00
2017-07-06 11:30:07 -04:00
2013-05-04 14:47:26 -04:00
2017-07-25 18:05:25 +02:00
2014-11-04 13:29:38 +00:00
2017-05-26 10:10:37 +02:00
2017-09-06 17:27:26 -07:00
2016-12-06 10:17:03 +02:00
2015-04-12 21:03:31 +02:00
2016-02-11 18:35:48 -08:00
2016-03-14 15:43:11 -04:00
2017-08-06 20:55:29 -07:00
2017-08-06 20:55:29 -07:00
2017-08-21 12:47:31 -07:00
2016-10-31 16:18:30 -04:00
2016-10-14 11:36:59 -07:00
2016-09-27 21:52:00 -04:00
2010-08-04 21:53:17 -07:00
2011-11-02 16:07:02 -07:00
2011-03-31 11:26:23 -03:00
2017-09-08 18:26:47 -07:00
2017-08-16 16:28:47 -07:00
2012-03-20 21:29:38 -04:00
2010-02-10 17:47:17 -08:00
2017-06-29 10:48:57 +01:00
2016-03-22 15:36:02 -07:00
2017-07-12 23:11:23 +02:00
2013-06-17 16:38:57 -07:00
2017-08-01 12:03:10 -07:00
2017-07-06 16:24:30 -07:00
2016-01-04 16:11:11 -05:00
2017-08-16 16:28:47 -07:00
2017-08-03 21:37:29 -07:00
2005-04-16 15:20:36 -07:00
2017-06-08 18:52:42 -07:00
2010-08-09 16:48:44 -04:00
2017-06-01 14:53:04 -04:00
2013-04-30 15:50:12 +05:30
2011-08-16 00:16:49 -07:00
2005-04-16 15:20:36 -07:00
2017-03-09 15:42:33 +01:00
2010-03-25 17:18:43 -07:00
2017-01-10 18:31:55 -08:00
2015-10-01 09:57:59 -07:00
2010-11-29 08:55:25 +11:00
2017-08-28 16:15:42 +02:00
2005-04-16 15:20:36 -07:00
2017-07-24 17:50:37 +02:00
2014-11-28 16:08:16 +01:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2017-05-09 16:43:22 +03:00
2017-09-08 18:26:48 -07:00
2017-08-31 18:50:14 +02:00
2017-08-18 15:32:01 -07:00
2015-12-03 07:24:29 -08:00
2015-03-24 09:48:14 -07:00
2017-09-05 06:34:17 -07:00
2011-01-13 08:03:24 -08:00
2013-10-17 15:53:09 -04:00
2010-04-06 20:35:58 +04:00