include config.h before usage, fixes SLEEP_MODE_IDLE problem
Merge remote-tracking branch 'upstream/master' into e6-upstream2