Carlos Santos
00b5032ead
util/cacheinfo: fix crash when compiling with uClibc
...
uClibc defines _SC_LEVEL1_ICACHE_LINESIZE and _SC_LEVEL1_DCACHE_LINESIZE
but the corresponding sysconf calls returns -1, which is a valid result,
meaning that the limit is indeterminate.
Handle this situation using the fallback values instead of crashing due
to an assertion failure.
Signed-off-by: Carlos Santos <casantos@redhat.com>
Message-Id: <20191017123713.30192-1-casantos@redhat.com>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
2020-01-21 14:18:12 -10:00
..
2019-06-12 13:20:20 +02:00
2018-09-25 15:50:15 +02:00
2019-01-14 14:09:41 +00:00
2017-02-21 11:14:07 +00:00
2019-10-24 19:26:05 +02:00
2018-10-02 18:47:55 +02:00
2016-03-22 22:20:15 +01:00
2019-07-15 15:39:02 +02:00
2019-01-11 15:46:56 +01:00
2016-05-19 16:42:28 +02:00
2019-06-12 13:20:20 +02:00
2020-01-21 14:18:12 -10:00
2019-06-12 13:20:20 +02:00
2016-09-29 14:13:39 +02:00
2019-06-12 13:20:20 +02:00
2016-09-29 14:13:39 +02:00
2019-06-12 13:20:20 +02:00
2019-12-18 12:26:25 +01:00
2020-01-06 18:41:32 +04:00
2018-08-27 10:51:44 +02:00
2019-06-12 13:20:20 +02:00
2019-12-18 08:36:16 +01:00
2019-10-24 19:26:52 +02:00
2018-01-24 19:20:19 +02:00
2019-08-16 13:31:52 +02:00
2019-04-02 13:52:02 +01:00
2019-04-02 13:52:02 +01:00
2019-06-12 13:20:20 +02:00
2020-01-07 12:08:39 +01:00
2019-10-28 11:22:30 +01:00
2016-04-06 09:52:07 +08:00
2017-01-31 10:10:14 +11:00
2020-01-07 16:50:09 +04:00
2019-10-08 14:27:35 +01:00
2018-06-29 12:22:28 +01:00
2018-05-04 08:27:53 +02:00
2017-01-16 13:25:18 +00:00
2019-12-18 20:18:02 +00:00
2019-10-22 09:38:42 +02:00
2020-01-06 18:41:32 +04:00
2019-09-11 08:46:17 +02:00
2019-10-26 15:38:06 +02:00
2020-01-08 16:01:18 +01:00
2019-09-24 12:18:47 +01:00
2020-01-02 16:29:32 +04:00
2019-10-26 15:38:06 +02:00
2019-10-26 15:38:06 +02:00
2017-10-10 09:45:00 -07:00
2019-06-24 22:19:30 +02:00
2016-08-03 18:44:56 +02:00
2019-10-28 11:22:31 +01:00
2019-06-12 13:20:20 +02:00
2019-10-25 14:38:29 +02:00
2019-06-12 13:20:20 +02:00
2019-11-18 16:01:34 -06:00
2019-06-12 13:20:20 +02:00
2019-12-18 08:36:15 +01:00
2016-02-04 17:01:04 +00:00
2019-06-12 13:20:20 +02:00
2019-04-18 22:18:59 +02:00
2017-04-28 18:48:11 +02:00
2019-09-25 08:15:44 -05:00
2018-12-20 10:29:08 +01:00
2019-09-16 17:13:06 +02:00
2019-09-16 17:13:06 +02:00
2016-02-04 17:01:04 +00:00
2019-10-24 20:10:18 +02:00
2018-09-26 08:55:54 -07:00
2019-12-17 19:33:52 +01:00
2019-01-30 10:51:20 +01:00
2019-06-12 13:20:20 +02:00
2019-06-11 20:22:09 +02:00
2017-11-15 09:34:51 +01:00
2018-04-05 14:37:38 +02:00
2019-10-22 09:38:42 +02:00
2019-06-12 13:20:20 +02:00
2017-09-26 14:46:23 +02:00
2016-05-18 15:04:27 +03:00
2019-09-03 23:24:42 +02:00
2018-08-24 20:26:37 +02:00
2018-06-29 12:32:10 +02:00
2019-06-12 13:20:20 +02:00
2019-10-26 15:38:06 +02:00