When our mind works freely without any hindrance, and is at liberty to 'come' or to 'go', we attain Samadhi of Prajna, or liberation. Such a state is called the function of 'thoughtlessness'. But to refrain from thinking of anything, so that all thoughts are suppressed, is to be Dharma-ridden, and this is an erroneous view.
