The quake knocked out electric power in General Santos, Davao and Cotabato cities and outlying towns, the civil defense office said. Electricity was restored later in some towns but much of General Santos was still without power by mid-afternoon.