Micron has declared its first quarterly profit for three years .