HP tops Wall Street’s earnings, revenue forecast