@@ -338,7 +338,7 @@ platform_nproc(void)
}
unsigned long
-platform_physmem(void)
+physmem(void)
{
struct sysinfo si;
@@ -349,3 +349,9 @@ platform_physmem(void)
}
return (si.totalram >> 10) * si.mem_unit; /* kilobytes */
}
+
+unsigned long
+platform_physmem(void)
+{
+ return physmem();
+}
@@ -26,6 +26,7 @@ int direct_blockdev(void);
int platform_align_blockdev(void);
int align_blockdev(void);
unsigned long platform_physmem(void); /* in kilobytes */
+unsigned long physmem(void); /* in kilobytes */
void platform_findsizes(char *path, int fd, long long *sz, int *bsz);
void findsizes(char *path, int fd, long long *sz, int *bsz);
int platform_nproc(void);
@@ -1081,7 +1081,7 @@ main(int argc, char **argv)
(mp->m_sb.sb_dblocks >> (10 + 1)) +
50000; /* rough estimate of 50MB overhead */
max_mem = max_mem_specified ? max_mem_specified * 1024 :
- platform_physmem() * 3 / 4;
+ physmem() * 3 / 4;
if (getrlimit(RLIMIT_AS, &rlim) != -1 &&
rlim.rlim_cur != RLIM_INFINITY) {