Well there are many who do not know this
You cannot make subinterfaces on Cisco switches. No matter its 2960,3560 or 3750. No matter its LANLITE or LAN base. No matter its standard image or enhanced image. Subinterfaces are simply not supported.
So what the alternative solution? You get it. Use SVI instead. You can do almost every thing that you can do with physical interface
Int vlan 10
ip address x.x.x.x x.x.x.x
IP ospf cost 10