Add function to set CPU frequency on Linux