Hello guys!
I want to build some kind of voltage comparator, which will turn the P MOSFET transistor on (conduct), when the voltage drops below threshold voltage, given by the zener diode. I want to achieve small hysteresis, and fast response. The supply voltage is 12V.
I figured out something like this... but the hystheresis is around 0.5V which is too much, and sometimes the mosfet heats up.

What can I improve?
I want to build some kind of voltage comparator, which will turn the P MOSFET transistor on (conduct), when the voltage drops below threshold voltage, given by the zener diode. I want to achieve small hysteresis, and fast response. The supply voltage is 12V.
I figured out something like this... but the hystheresis is around 0.5V which is too much, and sometimes the mosfet heats up.

What can I improve?