#define _ASM_X86_TSC_H
  
  #include <asm/processor.h>
+ #include <asm/cpufeature.h>
  
 -#define NS_SCALE      10 /* 2^10, carefully chosen */
 -#define US_SCALE      32 /* 2^32, arbitralrily chosen */
 -
  /*
   * Standard way to access the cycle counter.
   */
 
  #ifdef CONFIG_CPUSETS
        p->cpuset_mem_spread_rotor = NUMA_NO_NODE;
        p->cpuset_slab_spread_rotor = NUMA_NO_NODE;
-       seqcount_init(&p->mems_allowed_seq);
+       seqcount_spinlock_init(&p->mems_allowed_seq, &p->alloc_lock);
  #endif
  #ifdef CONFIG_TRACE_IRQFLAGS
 -      p->irq_events = 0;
 -      p->hardirq_enable_ip = 0;
 -      p->hardirq_enable_event = 0;
 -      p->hardirq_disable_ip = _THIS_IP_;
 -      p->hardirq_disable_event = 0;
 -      p->softirqs_enabled = 1;
 -      p->softirq_enable_ip = _THIS_IP_;
 -      p->softirq_enable_event = 0;
 -      p->softirq_disable_ip = 0;
 -      p->softirq_disable_event = 0;
 -      p->softirq_context = 0;
 +      memset(&p->irqtrace, 0, sizeof(p->irqtrace));
 +      p->irqtrace.hardirq_disable_ip  = _THIS_IP_;
 +      p->irqtrace.softirq_enable_ip   = _THIS_IP_;
 +      p->softirqs_enabled             = 1;
 +      p->softirq_context              = 0;
  #endif
  
        p->pagefault_disabled = 0;
 
  {
        register_pernet_subsys(&xfrm_net_ops);
        xfrm_dev_init();
-       seqcount_init(&xfrm_policy_hash_generation);
+       seqcount_mutex_init(&xfrm_policy_hash_generation, &hash_resize_mutex);
        xfrm_input_init();
  
 -#ifdef CONFIG_INET_ESPINTCP
 +#ifdef CONFIG_XFRM_ESPINTCP
        espintcp_init();
  #endif