Hewlett-Packard on Wednesday reported that its quarterly revenue rose for the first time in three years, nudged by improved computer sales everywhere except Russia and China. Meanwhile, HP profit in the recently ended quarter ebbed to $985 million compared to $1.39 billion in the same period a year earlier, due in part to cost savings from a massive effort by chief executive Meg Whitman to find new momentum as lifestyles shift from personal computers to smartphones and tablets. Sales of home and business computers were bright spots in the quarter despite pressure on the overall personal computer market due to competition from smartphones and tablets. HP expected political forces in Russia and fierce competition in China to present challenges for the company.