pm: update for ARM

This commit is contained in:
Arun Thomas 2012-08-11 17:45:06 +02:00
parent cdfb5ab81f
commit 263ec1e885
2 changed files with 5 additions and 1 deletions

View file

@ -288,6 +288,8 @@ static int sef_cb_init_fresh(int UNUSED(type), sef_init_info_t *UNUSED(info))
#if defined(__i386__)
uts_val.machine[0] = 'i';
strcpy(uts_val.machine + 1, itoa(getprocessor()));
#elif defined(__arm__)
strcpy(uts_val.machine, "arm");
#endif
system_hz = sys_hz();

View file

@ -36,8 +36,10 @@ struct utsname uts_val = {
OS_RELEASE, /* O.S. release (e.g. 1.5) */
OS_VERSION, /* O.S. version (e.g. 10) */
"xyzzy", /* machine (cpu) type (filled in later) */
#if __i386
#if defined(__i386__)
"i386", /* architecture */
#elif defined(__arm__)
"arm", /* architecture */
#else
#error /* oops, no 'uname -mk' */
#endif