syscall uname: Add the uptime data
authorAlan Cox <alan@linux.intel.com>
Fri, 26 Dec 2014 20:42:43 +0000 (20:42 +0000)
committerAlan Cox <alan@linux.intel.com>
Fri, 26 Dec 2014 20:42:43 +0000 (20:42 +0000)
While are breaking the prototype ABI lets just stuff the uptime data in
the sysinfo block and be done with it.

Kernel/include/kernel.h
Library/include/syscalls.h

index 11b93f9..c0be366 100644 (file)
@@ -495,12 +495,15 @@ struct sysinfoblk {
   uint8_t infosize;            /* For expandability */
   uint8_t banks;               /* Banks in our 64K (and thus pagesize) */
   uint8_t max_open;
+  uint8_t spare;
   uint16_t ticks;              /* Tick rate in HZ */
   uint16_t memk;               /* Memory in KB */
   uint16_t usedk;              /* Used memory in KB */
   uint16_t config;             /* Config flag mask */
 #define CONF_PROFIL            1
 #define CONF_NET               2       /* Hah.. 8) */
+  uint16_t loadavg[3];
+  uint32_t spare2;
                                /* Followed by uname strings */
 };
 
index bb7953d..394cbb2 100644 (file)
@@ -33,10 +33,13 @@ struct _uzisysinfoblk {
   uint8_t infosize;            /* For expandability */
   uint8_t banks;               /* Banks in our 64K (and thus pagesize) */
   uint8_t max_open;
+  uint8_t pad;
   uint16_t ticks;              /* Tick rate in HZ */
   uint16_t memk;               /* Memory in KB */
   uint16_t usedk;              /* Used memory in KB */
   uint16_t config;             /* Config flag mask */
+  uint16_t loadavg[3];
+  uint32_t spare;
 };
 
 /*