Bug 578618 - Remove high_watermark check on maemo > 5. r=dougt

--HG--
extra : rebase_source : 7c485016f3dab422a45426e8c970c5cac6e2cf4d
This commit is contained in:
Oleg Romashin 2010-08-03 10:44:47 -07:00
Родитель 9f4e67611c
Коммит 5605374989
1 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -58,7 +58,7 @@
#include <windows.h> #include <windows.h>
#endif #endif
#if defined(MOZ_PLATFORM_MAEMO) && defined(__arm__) #if (MOZ_PLATFORM_MAEMO == 5 || MOZ_PLATFORM_MAEMO == 4) && defined(__arm__)
#include <fcntl.h> #include <fcntl.h>
#include <unistd.h> #include <unistd.h>
static const char kHighMark[] = "/sys/kernel/high_watermark"; static const char kHighMark[] = "/sys/kernel/high_watermark";
@ -128,7 +128,7 @@ nsMemoryImpl::IsLowMemory(PRBool *result)
GlobalMemoryStatusEx(&stat); GlobalMemoryStatusEx(&stat);
*result = (stat.ullAvailPageFile < kRequiredMemory) && *result = (stat.ullAvailPageFile < kRequiredMemory) &&
((float)stat.ullAvailPageFile / stat.ullTotalPageFile) < 0.1; ((float)stat.ullAvailPageFile / stat.ullTotalPageFile) < 0.1;
#elif defined(MOZ_PLATFORM_MAEMO) && defined(__arm__) #elif (MOZ_PLATFORM_MAEMO == 5 || MOZ_PLATFORM_MAEMO == 4) && defined(__arm__)
static int osso_highmark_fd = -1; static int osso_highmark_fd = -1;
if (osso_highmark_fd == -1) { if (osso_highmark_fd == -1) {
osso_highmark_fd = open (kHighMark, O_RDONLY); osso_highmark_fd = open (kHighMark, O_RDONLY);