Alain De Botton said this quote

What we colloquially call 'feeling bored' is just the mind, acting out of a self-preserving reflex, ejecting information it has despaired of knowing where to place.