Dynamic load of pcspkr kernel module on x86 target causes beep to crash

Hi! Just for the record, in case others stumble across the same problem:

There seems to be a problem with the pcspkr kernel module on x86/64 targets. If I enable the pcspkr module, running the beep command will fail with a floating-point exception.

If I rather define CONFIG_INPUT_PCSPKR=y in the kernel config, beep works as intented, but then one needs to disable the pcspkr module in menuconfig in order to avoid loading the module a second time and delaying the boot sequence.

Tested on APU2C4.