Touchscreens drive profit at chipmakers as PC sales slow