any solutions? on 2005 Pontiac Grand Prix

my car cuts off while driving. the dash says reduced engine power due to electronic throttle control. my mechanic tried replacing the throttle, he cleaned the throttle, and tried new ignition and fuel pump. still cuts off.

Asked by for the 2005 Pontiac Grand Prix