Imported missing piece of code from gpe kernel.