Hi, i am developing a mpc5200b rtc driver. here is the steps I must follow when I set the curret time.
- Write register with pause_time 1 and set_time 0
- Write register with pause_time 1 and set_time 1
- Write register with pause_time 1 and set_time 0
- Write register with pause_time 0 and set_time 0
I think these step's order is fixed, step 2 can not run before step
1.Of course my code follow these steps exactly.but here I have some question.When I read some linux kernel souce code, I found there's a lot of place use memory barrier to control CPU execute instructions step by step. I want to know, whether my mpc5200b rtc driver need these memory barrier to protect the order of my code like above.thanks.