diff options
author | Jin Qian <jinqian@google.com> | 2017-01-23 15:31:04 -0800 |
---|---|---|
committer | Jin Qian <jinqian@google.com> | 2017-01-24 14:45:50 -0800 |
commit | 88ad33eff1fd70d276f9be70164afeb0dc639e58 (patch) | |
tree | 521f648a121cb7058431d9d9222d67393cbdef3b /storaged/storaged.cpp | |
parent | 3790f5bfafc52ca881b9350b922ffe94e6a537bb (diff) | |
download | core-88ad33eff1fd70d276f9be70164afeb0dc639e58.tar.gz core-88ad33eff1fd70d276f9be70164afeb0dc639e58.tar.bz2 core-88ad33eff1fd70d276f9be70164afeb0dc639e58.zip |
storaged: remove task io code
Bug: 34612499
Change-Id: Id0599ee2ae025a186259e95363c1ddd0feae8079
Diffstat (limited to 'storaged/storaged.cpp')
-rw-r--r-- | storaged/storaged.cpp | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/storaged/storaged.cpp b/storaged/storaged.cpp index 1950c217a..d3fa2b97d 100644 --- a/storaged/storaged.cpp +++ b/storaged/storaged.cpp @@ -166,15 +166,6 @@ storaged_t::storaged_t(void) { mConfig.diskstats_available = true; } - mConfig.proc_taskio_readable = true; - const char* test_paths[] = {"/proc/1/io", "/proc/1/comm", "/proc/1/cmdline", "/proc/1/stat"}; - for (uint i = 0; i < sizeof(test_paths) / sizeof(const char*); ++i) { - if (access(test_paths[i], R_OK) < 0) { - mConfig.proc_taskio_readable = false; - break; - } - } - mConfig.proc_uid_io_available = (access(UID_IO_STATS_PATH, R_OK) == 0); mConfig.periodic_chores_interval_unit = @@ -205,12 +196,6 @@ void storaged_t::event(void) { } } -#ifdef DEBUG - if (mConfig.proc_taskio_readable) { - mTasks.update_running_tasks(); - } -#endif - if (mConfig.emmc_available && mTimer && (mTimer % mConfig.periodic_chores_interval_emmc_info_publish) == 0) { mEmmcInfo.update(); |