added sema up to timer interupt