Torch: Switch to sysfs interface

Change-Id: I81f5aacda1fd3237a0dfe8d7bd65090730c04a83
Merge branch "cm-11.0" into kylin