implement /proc/stat

only for sysconf(_SC_NPROCESSORS_ONLN).  This enables Intel OpenMP
runtime to arrange threads with regard for CPU topology.

refs #291
This commit is contained in:
NAKAMURA Gou
2015-01-14 18:48:43 +09:00
parent 9ad48083aa
commit daec7de828
2 changed files with 68 additions and 1 deletions

View File

@@ -29,6 +29,7 @@
#include <process.h>
#include <init.h>
#include <cls.h>
#include <syscall.h>
//#define IOCTL_FUNC_EXTENSION
#ifdef IOCTL_FUNC_EXTENSION
@@ -237,6 +238,7 @@ static void post_init(void)
ihk_mc_spinlock_init(&syscall_lock);
}
ap_start();
create_os_procfs_files();
}
#ifdef DCFA_RUN
extern void user_main();