2

I have question about the preemptive_count in the old linux kernel (e.g. 2.6.33)

    #define preempt_count() (current_thread_info()->preempt_count)

all the related field in this variable is about the CPU related info, why the kernel does not using a cpu based variable?

Cœur
  • 37,241
  • 25
  • 195
  • 267
Adambynes
  • 197
  • 1
  • 10

0 Answers0