From 456e47901692b03d29f5207c6ef64deb25059f35 Mon Sep 17 00:00:00 2001 From: Pablo Tello Date: Wed, 31 Jan 2018 17:27:09 +0000 Subject: COMPMID-765: Fixed CPU detection code to read larger buffer (was failing on Arm Cortex-A55 FPGA with 8 CPUs with lots of flags). Change-Id: I493fb1013c6c25d9b9c809705b1ee24abac1d8d1 Reviewed-on: https://eu-gerrit-1.euhpc.arm.com/118456 Tested-by: Jenkins Reviewed-by: Anthony Barbier --- src/runtime/IScheduler.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/runtime/IScheduler.cpp') diff --git a/src/runtime/IScheduler.cpp b/src/runtime/IScheduler.cpp index 02541810bd..1d06c4e5e9 100644 --- a/src/runtime/IScheduler.cpp +++ b/src/runtime/IScheduler.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2016, 2017 ARM Limited. + * Copyright (c) 2016-2018 ARM Limited. * * SPDX-License-Identifier: MIT * @@ -38,7 +38,7 @@ unsigned int get_cpu_impl() { #ifndef BARE_METAL int fd = open("/proc/cpuinfo", 0); // NOLINT - std::array buff{ {} }; + std::array buff{ {} }; char *pos = nullptr; char *end = nullptr; bool foundid = false; @@ -50,7 +50,7 @@ unsigned int get_cpu_impl() return 0; } - int charsread = read(fd, buff.data(), 1200); + int charsread = read(fd, buff.data(), 3000); pos = buff.data(); end = buff.data() + charsread; -- cgit v1.2.1