Before upgrading the operating system, make sure you are using the latest BIOS version 31 and the latest drivers. They are available in the link below.
Then, using Windows® 8.1, run Windows® update utility, check if you already have the latest updates of your current operating system. Finally you can continue with the operating system upgrading.
Here you will see Intel’s recommendations for Windows® 10 Upgrade Instructions