Aimed at aligning cost structure with strategy, the upcoming HP layoffs will address tariffs, slow sales, and efficiency.