kernel, libroot: Add more memory info in system_info

system_info now contains all information previously available only
through __get_system_info_etc(B_MEMORY_INFO, ...).
This commit is contained in:
Pawel Dziepak
2013-12-16 04:53:46 +01:00
parent 1bc7045fdf
commit d02aaee17e
15 changed files with 55 additions and 106 deletions
+1 -7
View File
@@ -497,13 +497,7 @@ BlockCacheDataSource::Copy() const
int64
BlockCacheDataSource::NextValue(SystemInfo& info)
{
system_memory_info memoryInfo;
status_t status = __get_system_info_etc(B_MEMORY_INFO, &memoryInfo,
sizeof(system_memory_info));
if (status != B_OK)
return 0;
return memoryInfo.block_cache_memory;
return info.BlockCacheMemory();
}