ipipe-2.6.23-i386-1.10-07
Subsystems (14)
This is a forward port of the latest ipipe patch for 2.6.22 to 2.6.23, additionally based on Philippe's earlier work for -rc2. It runs surprisingly well here, so I would like to invite more testers to the party. You need Xenomai SVN head + my timer setup fix [1] to create a test platform.
I had to perform one small magic dance to get the patch compiling due to inclusion hell around ipipe_base.h, check arch/i386/boot/compressed/Makefile.
Jan
[1] https://mail.gna.org/public/xenomai-core/2007-10/msg00068.html
Makefile +4 -0
@@ -491,6 +491,10 @@ endif include $(srctree)/arch/$(ARCH)/Makefile +ifdef CONFIG_IPIPE_TRACE_MCOUNT +CFLAGS += -pg +endif + ifdef CONFIG_FRAME_POINTER CFLAGS += -fno-omit-frame-pointer -fno-optimize-sibling-calls else
arch/i386/Kconfig +3 -1
@@ -217,7 +217,7 @@ endchoice config PARAVIRT bool "Paravirtualization support (EXPERIMENTAL)" depends on EXPERIMENTAL - depends on !(X86_VISWS || X86_VOYAGER) + depends on !(X86_VISWS || X86_VOYAGER || IPIPE) help Paravirtualization is a way of running multiple instances of Linux on the same machine, under a hypervisor. This option
@@ -315,6 +315,8 @@ config SCHED_MC source "kernel/Kconfig.preempt" +source "kernel/ipipe/Kconfig" + config X86_UP_APIC bool "Local APIC support on uniprocessors" depends on !SMP && !(X86_VISWS || X86_VOYAGER || X86_GENERICARCH)
arch/i386/kernel/Makefile +2 -0
@@ -32,6 +32,8 @@ obj-$(CONFIG_X86_SUMMIT_NUMA) += summit. obj-$(CONFIG_KPROBES) += kprobes.o obj-$(CONFIG_MODULES) += module.o obj-y += sysenter.o vsyscall.o +obj-$(CONFIG_IPIPE) += ipipe.o +obj-$(CONFIG_IPIPE_TRACE_MCOUNT) += mcount.o obj-$(CONFIG_ACPI_SRAT) += srat.o obj-$(CONFIG_EFI) += efi.o efi_stub.o obj-$(CONFIG_DOUBLEFAULT) += doublefault.o
arch/i386/kernel/apic.c +20 -9
@@ -250,7 +250,7 @@ static void lapic_timer_setup(enum clockif (!local_apic_timer_verify_ok)return ; -local_irq_save (flags); +local_irq_save_hw (flags);switch (mode) {case CLOCK_EVT_MODE_PERIODIC :
@@ -269,7 +269,7 @@ static void lapic_timer_setup(enum clockbreak ; } -local_irq_restore (flags); +local_irq_restore_hw (flags); }/*
@@ -716,13 +716,18 @@ void lapic_shutdown(void)if (!cpu_has_apic)return ; -local_irq_save (flags); +local_irq_save_hw (flags);clear_local_APIC ();if (enabled_via_apicbase)disable_local_APIC (); -local_irq_restore (flags); +local_irq_restore_hw (flags); +} + +int __ipipe_check_lapic (void ) +{ +return !(lapic_clockevent.features &CLOCK_EVT_FEAT_DUMMY ); }/*
@@ -1272,7 +1277,7 @@ void smp_spurious_interrupt(struct pt_re*/ v =apic_read (APIC_ISR + ((SPURIOUS_APIC_VECTOR & ~0x1f ) >>1 ));if (v & (1 << (SPURIOUS_APIC_VECTOR &0x1f ))) -ack_APIC_irq (); +__ack_APIC_irq ();/* see sw-dev-man vol 3, chapter 7.4.13.5 */ printk(KERN_INFO "spurious APIC interrupt on CPU#%d, "
@@ -1329,6 +1334,12 @@ void __init apic_intr_init(void)#ifdef CONFIG_X86_MCE_P4THERMAL set_intr_gate (THERMAL_APIC_VECTOR , thermal_interrupt);#endif +#ifdef CONFIG_IPIPE +set_intr_gate (IPIPE_SERVICE_VECTOR0 , ipipe_ipi0); +set_intr_gate (IPIPE_SERVICE_VECTOR1 , ipipe_ipi1); +set_intr_gate (IPIPE_SERVICE_VECTOR2 , ipipe_ipi2); +set_intr_gate (IPIPE_SERVICE_VECTOR3 , ipipe_ipi3); +#endif }/**
@@ -1467,9 +1478,9 @@ static int lapic_suspend(struct sys_devi apic_pm_state.apic_thmr =apic_read (APIC_LVTTHMR );#endif -local_irq_save (flags); +local_irq_save_hw (flags);disable_local_APIC (); -local_irq_restore (flags); +local_irq_restore_hw (flags);return 0 ; }
@@ -1484,7 +1495,7 @@ static int lapic_resume(struct sys_devic maxlvt =lapic_get_maxlvt (); -local_irq_save (flags); +local_irq_save_hw (flags);/* * Make sure the APICBASE points to the right address
@@ -1519,7 +1530,7 @@ static int lapic_resume(struct sys_devicapic_write (APIC_LVTERR , apic_pm_state.apic_lvterr);apic_write (APIC_ESR ,0 );apic_read (APIC_ESR ); -local_irq_restore (flags); +local_irq_restore_hw (flags);return 0 ; }
arch/i386/kernel/entry.S +134 -23
376 lines not on this page · raw message
arch/i386/kernel/i8253.c +8 -1
@@ -4,6 +4,7 @@*/ #include <linux/clockchips.h> #include <linux/init.h> +#include <linux/ipipe.h> #include <linux/interrupt.h> #include <linux/jiffies.h> #include <linux/module.h>
@@ -15,7 +16,7 @@#include <asm/io.h> #include <asm/timer.h> -DEFINE_SPINLOCK (i8253_lock); +IPIPE_DEFINE_SPINLOCK (i8253_lock);EXPORT_SYMBOL (i8253_lock);/*
@@ -133,6 +134,12 @@ static cycle_t pit_read(void)static int old_count;static u32 old_jifs; +#ifdef CONFIG_IPIPE +if (!__ipipe_pipeline_head_p (ipipe_root_domain)) +/* We don't really own the PIT. */ +return (cycle_t)(jiffies *LATCH ) + (LATCH -1 ) - old_count; +#endif /* CONFIG_IPIPE */ +spin_lock_irqsave (&i8253_lock, flags);/* * Although our caller may have the read side of xtime_lock,
arch/i386/kernel/i8259.c +20 -7
@@ -34,7 +34,7 @@*/ static int i8259A_auto_eoi; -DEFINE_SPINLOCK (i8259A_lock); +IPIPE_DEFINE_SPINLOCK (i8259A_lock);static void mask_and_ack_8259A (unsigned int );static struct irq_chip i8259A_chip = {
@@ -71,6 +71,7 @@ void disable_8259A_irq(unsigned int irq)unsigned long flags;spin_lock_irqsave (&i8259A_lock, flags); +ipipe_irq_lock (irq); cached_irq_mask |= mask;if (irq &8 )outb (cached_slave_mask,PIC_SLAVE_IMR );
@@ -81,15 +82,18 @@ void disable_8259A_irq(unsigned int irq)void enable_8259A_irq (unsigned int irq) { -unsigned int mask = ~(1 << irq); +unsigned int mask = (1 << irq);unsigned long flags;spin_lock_irqsave (&i8259A_lock, flags); - cached_irq_mask &= mask; -if (irq &8 ) -outb (cached_slave_mask,PIC_SLAVE_IMR ); -else -outb (cached_master_mask,PIC_MASTER_IMR ); +if (cached_irq_mask & mask) { + cached_irq_mask &= ~mask; +if (irq &8 ) +outb (cached_slave_mask,PIC_SLAVE_IMR ); +else +outb (cached_master_mask,PIC_MASTER_IMR ); +ipipe_irq_unlock (irq); + }spin_unlock_irqrestore (&i8259A_lock, flags); }
@@ -170,6 +174,15 @@ static void mask_and_ack_8259A(unsigned*/ if (cached_irq_mask & irqmask) goto spurious_8259A_irq; +#ifdef CONFIG_IPIPE +if (irq ==0 ) { +/* Fast timer ack -- don't mask (unless supposedly +spurious) */ +outb (0x60 ,PIC_MASTER_CMD );/* Specific EOI to master. */ +spin_unlock_irqrestore (&i8259A_lock, flags); +return ; + } +#endif /* CONFIG_IPIPE */ cached_irq_mask |= irqmask; handle_real_irq:
arch/i386/kernel/io_apic.c +34 -7
125 lines not on this page · raw message
arch/i386/kernel/ipipe.c new file +817 -0
817 lines not on this page · raw message
arch/i386/kernel/mcount.S new file +32 -0
@@ -0,0 +1,32 @@ +/* + * linux/arch/i386/mcount.S + * + * Copyright (C) 2005, 2007 Jan Kiszka + */ + +.globl mcount +mcount: + cmpl $0,ipipe_trace_enable + je out + + pushl %ebp + movl %esp,%ebp + + pushl %eax + pushl %ecx + pushl %edx + + pushl $0 # no additional value (v) + movl (%ebp),%eax + movl 0x4(%ebp),%edx # __CALLER_ADDR0 + movl 0x4(%eax),%ecx # __CALLER_ADDR1 + movl $0,%eax # IPIPE_TRACE_FUNC + call __ipipe_trace + popl %eax + + popl %edx + popl %ecx + popl %eax + popl %ebp +out: + ret
arch/i386/kernel/nmi.c +5 -3
@@ -48,6 +48,10 @@ static unsigned int nmi_hz = HZ; static DEFINE_PER_CPU(short, wd_enabled); +static int default_nmi_watchdog_tick (struct pt_regs * regs,unsigned reason); +int (*nmi_watchdog_tick) (struct pt_regs * regs,unsigned reason) = &default_nmi_watchdog_tick; +EXPORT_SYMBOL (nmi_watchdog_tick); +/* local prototypes */ static int unknown_nmi_panic_callback (struct pt_regs *regs,int cpu);
@@ -317,9 +321,7 @@ void touch_nmi_watchdog(void) }EXPORT_SYMBOL (touch_nmi_watchdog); -extern void die_nmi (struct pt_regs *,const char *msg); - -__kprobes int nmi_watchdog_tick (struct pt_regs * regs,unsigned reason) +static __kprobes int default_nmi_watchdog_tick (struct pt_regs * regs,unsigned reason) {/*
arch/i386/kernel/process.c +1 -0
@@ -197,6 +197,7 @@ void cpu_idle(void)play_dead ();__get_cpu_var (irq_stat).idle_timestamp = jiffies; +ipipe_suspend_domain ();idle (); }tick_nohz_restart_sched_tick ();
arch/i386/kernel/smp.c +22 -6
@@ -142,6 +142,9 @@ void __send_IPI_shortcut(unsigned int sh* to the APIC. */ unsigned int cfg; +unsigned long flags; + +local_irq_save_hw_cond (flags);/* * Wait for idle.
@@ -157,6 +160,8 @@ void __send_IPI_shortcut(unsigned int sh* Send the IPI. The write to APIC_ICR fires this off. */ apic_write_around (APIC_ICR , cfg); + +local_irq_restore_hw_cond (flags); } void fastcall send_IPI_self(int vector)
@@ -205,10 +210,10 @@ void send_IPI_mask_bitmask(cpumask_t cpuunsigned long mask =cpus_addr (cpumask)[0 ];unsigned long flags; -local_irq_save (flags); +local_irq_save_hw (flags);WARN_ON (mask & ~cpus_addr (cpu_online_map)[0 ]);__send_IPI_dest_field (mask, vector); -local_irq_restore (flags); +local_irq_restore_hw (flags); }void send_IPI_mask_sequence (cpumask_t mask,int vector)
@@ -222,14 +227,14 @@ void send_IPI_mask_sequence(cpumask_t ma* should be modified to do 1 message per cluster ID - mbligh */ -local_irq_save (flags); +local_irq_save_hw (flags);for (query_cpu =0 ; query_cpu <NR_CPUS ; ++query_cpu) {if (cpu_isset (query_cpu, mask)) {__send_IPI_dest_field (cpu_to_logical_apicid (query_cpu), vector); } } -local_irq_restore (flags); +local_irq_restore_hw (flags); }#include <mach_ipi.h> /* must come after the send_IPI functions above for inlining */
@@ -312,7 +317,9 @@ void leave_mm(unsigned long cpu) fastcall void smp_invalidate_interrupt(struct pt_regs *regs) { -unsigned long cpu; +unsigned long cpu, flags; + +local_irq_save_hw_cond (flags); cpu =get_cpu ();
@@ -342,6 +349,7 @@ fastcall void smp_invalidate_interrupt(ssmp_mb__after_clear_bit (); out:put_cpu_no_resched (); +local_irq_restore_hw_cond (flags); } void native_flush_tlb_others(const cpumask_t *cpumaskp, struct mm_struct *mm,
@@ -395,14 +403,17 @@ void flush_tlb_current_task(void) {struct mm_struct *mm = current->mm;cpumask_t cpu_mask; +unsigned long flags;preempt_disable (); +local_irq_save_hw_cond (flags); cpu_mask = mm->cpu_vm_mask;cpu_clear (smp_processor_id (), cpu_mask);local_flush_tlb ();if (!cpus_empty (cpu_mask))flush_tlb_others (cpu_mask, mm,TLB_FLUSH_ALL ); +local_irq_restore_hw_cond (flags);preempt_enable (); }
@@ -430,8 +441,11 @@ void flush_tlb_page(struct vm_area_struc {struct mm_struct *mm = vma->vm_mm;cpumask_t cpu_mask; +unsigned long flags;preempt_disable (); +local_irq_save_hw_cond (flags); + cpu_mask = mm->cpu_vm_mask;cpu_clear (smp_processor_id (), cpu_mask);
@@ -442,6 +456,8 @@ void flush_tlb_page(struct vm_area_strucleave_mm (smp_processor_id ()); } +local_irq_restore_hw_cond (flags); +if (!cpus_empty (cpu_mask))flush_tlb_others (cpu_mask, mm, va);
@@ -603,7 +619,7 @@ native_smp_call_function_mask(cpumask_tstatic void stop_this_cpu (void * dummy) { -local_irq_disable (); +local_irq_disable_hw ();/* * Remove this CPU: */
arch/i386/kernel/smpboot.c +5 -0
@@ -1306,6 +1306,11 @@ void __init smp_intr_init(void)/* IPI for generic function call */ set_intr_gate (CALL_FUNCTION_VECTOR , call_function_interrupt); + +#ifdef CONFIG_IPIPE +/* IPI for critical lock */ +set_intr_gate (IPIPE_CRITICAL_VECTOR , ipipe_ipiX); +#endif }/*
arch/i386/kernel/time.c +3 -2
@@ -165,11 +165,12 @@ irqreturn_t timer_interrupt(int irq, voi* This will also deassert NMI lines for the watchdog if run * on an 82489DX-based system. */ -spin_lock (&i8259A_lock); +unsigned long flags; +spin_lock_irqsave_cond (&i8259A_lock,flags);outb (0x0c ,PIC_MASTER_OCW3 );/* Ack the IRQ; AEOI will end it automatically. */ inb (PIC_MASTER_POLL ); - spin_unlock(&i8259A_lock); + spin_unlock_irqrestore_cond(&i8259A_lock,flags); }#endif
arch/i386/kernel/traps.c +13 -1
@@ -320,6 +320,9 @@ void show_registers(struct pt_regs *regsprintk (KERN_EMERG "Process %.*s (pid: %d, ti=%p task=%p task.ti=%p)" ,TASK_COMM_LEN , current->comm, current->pid,current_thread_info (), current,task_thread_info (current)); +#ifdef CONFIG_IPIPE +printk (KERN_EMERG "\nI-pipe domain %s" , ipipe_current_domain->name); +#endif /* CONFIG_IPIPE */ /* * When in-kernel, we also print out the stack and code at the * time of the fault..
@@ -746,6 +749,8 @@ void __kprobes die_nmi(struct pt_regs *rdo_exit (SIGSEGV ); } +EXPORT_SYMBOL (die_nmi); +static __kprobes void default_do_nmi (struct pt_regs * regs) {unsigned char reason =0 ;
@@ -788,17 +793,21 @@ static int ignore_nmis; fastcall __kprobes void do_nmi(struct pt_regs * regs, long error_code) { -int cpu; +int cpu, cs;nmi_enter (); cpu =smp_processor_id (); + cs =ipipe_disable_context_check (cpu); + ++nmi_count (cpu);if (!ignore_nmis)default_do_nmi (regs); +ipipe_restore_context_check (cpu, cs); +nmi_exit (); }
@@ -1092,13 +1101,16 @@ asmlinkage void math_state_restore(void) {struct thread_info *thread =current_thread_info ();struct task_struct *tsk = thread->task; +unsigned long flags; +local_irq_save_hw_cond (flags);clts ();/* Allow maths ops (or we recurse) */ if (!tsk_used_math (tsk))init_fpu (tsk);restore_fpu (tsk); thread->status |=TS_USEDFPU ;/* So we fnsave on switch_to() */ tsk->fpu_counter++; +local_irq_restore_hw_cond (flags); }EXPORT_SYMBOL_GPL (math_state_restore);
arch/i386/kernel/vm86.c +4 -0
@@ -148,12 +148,14 @@ struct pt_regs * fastcall save_v86_statedo_exit (SIGSEGV ); } +local_irq_disable_hw_cond (); tss = &per_cpu (init_tss,get_cpu ()); current->thread.esp0 = current->thread.saved_esp0; current->thread.sysenter_cs = __KERNEL_CS;load_esp0 (tss, ¤t->thread); current->thread.saved_esp0 =0 ;put_cpu (); +local_irq_enable_hw_cond (); ret =KVM86 ->regs32;
@@ -324,12 +326,14 @@ static void do_sys_vm86(struct kernel_vm tsk->thread.saved_fs = info->regs32->xfs;savesegment (gs, tsk->thread.saved_gs); +local_irq_disable_hw_cond (); tss = &per_cpu (init_tss,get_cpu ()); tsk->thread.esp0 = (unsigned long ) &info->VM86_TSS_ESP0;if (cpu_has_sep) tsk->thread.sysenter_cs =0 ;load_esp0 (tss, &tsk->thread);put_cpu (); +local_irq_enable_hw_cond (); tsk->thread.screen_bitmap = info->screen_bitmap;if (info->flags &VM86_SCREEN_BITMAP )
arch/i386/lib/mmx.c +1 -1
@@ -31,7 +31,7 @@ void *_mmx_memcpy(void *to, const void *void *p;int i; -if (unlikely (in_interrupt ())) +if (unlikely (!ipipe_root_domain_p ||in_interrupt ()))return __memcpy (to, from, len); p = to;
arch/i386/mach-visws/visws_apic.c +1 -1
@@ -28,7 +28,7 @@#include "irq_vectors.h" -static DEFINE_SPINLOCK (cobalt_lock); +static IPIPE_DEFINE_SPINLOCK (cobalt_lock);/* * Set the given Cobalt APIC Redirection Table entry to point
arch/i386/mach-voyager/voyager_basic.c +4 -4
@@ -185,20 +185,20 @@ voyager_timer_interrupt(void)* pointy. */ __u16 val; -spin_lock (&i8253_lock); +spin_lock_irqsave (&i8253_lock);outb_p (0x00 ,0x43 ); val =inb_p (0x40 ); val |=inb (0x40 ) <<8 ; -spin_unlock (&i8253_lock); +spin_unlock_irqrestore (&i8253_lock);if (val >LATCH ) {printk ("\nVOYAGER: countdown timer value too high (%d), resetting\n\n" , val); -spin_lock (&i8253_lock); +spin_lock_irqsave (&i8253_lock);outb (0x34 ,0x43 );outb_p (LATCH &0xff ,0x40 );/* LSB */ outb (LATCH >>8 ,0x40 );/* MSB */ -spin_unlock (&i8253_lock); +spin_unlock_irqrestore (&i8253_lock); } }#ifdef CONFIG_SMP
arch/i386/mm/fault.c +21 -0
@@ -311,6 +311,8 @@ fastcall void __kprobes do_page_fault(st/* get the address */ address =read_cr2 (); +local_irq_enable_hw_cond (); + tsk = current; si_code =SEGV_MAPERR ;
@@ -655,3 +657,22 @@ void vmalloc_sync_all(void) start = address +PGDIR_SIZE ; } } + +#ifdef CONFIG_IPIPE +void __ipipe_pin_range_globally (unsigned long start,unsigned long end) +{ +unsigned long next, addr = start; + +do { +unsigned long flags; +struct page *page; + + next =pgd_addr_end (addr, end); +spin_lock_irqsave (&pgd_lock, flags); +for (page = pgd_list; page; page = (struct page *)page->index) +vmalloc_sync_one (page_address (page), addr); +spin_unlock_irqrestore (&pgd_lock, flags); + + }while (addr = next, addr != end); +} +#endif /* CONFIG_IPIPE */
drivers/pci/htirq.c +1 -1
@@ -21,7 +21,7 @@* With multiple simultaneous hypertransport irq devices it might pay * to make this more fine grained. But start with simple, stupid, and correct. */ -static DEFINE_SPINLOCK (ht_irq_lock); +static IPIPE_DEFINE_SPINLOCK (ht_irq_lock);struct ht_irq_cfg {struct pci_dev *dev;
include/asm-i386/apic.h +6 -0
@@ -79,7 +79,13 @@ int get_physical_broadcast(void);# define apic_write_around (x,y) apic_write_atomic((x),(y))#endif +#ifdef CONFIG_IPIPE +#define ack_APIC_irq () do { } while(0) +static inline void __ack_APIC_irq(void) +#else /* !CONFIG_IPIPE */ +#define __ack_APIC_irq () ack_APIC_irq() static inline void ack_APIC_irq(void) +#endif /* CONFIG_IPIPE */ {/* * ack_APIC_irq() actually gets compiled as a single instruction:
include/asm-i386/hw_irq.h +7 -0
@@ -40,6 +40,13 @@ fastcall void error_interrupt(void); fastcall void spurious_interrupt(void); fastcall void thermal_interrupt(void);#define platform_legacy_irq (irq) ((irq) < 16) +#ifdef CONFIG_IPIPE +fastcall void ipipe_ipi0(void); +fastcall void ipipe_ipi1(void); +fastcall void ipipe_ipi2(void); +fastcall void ipipe_ipi3(void); +fastcall void ipipe_ipiX(void); +#endif #endif void disable_8259A_irq (unsigned int irq);
include/asm-i386/i8253.h +1 -1
@@ -8,7 +8,7 @@#define PIT_CH0 0x40#define PIT_CH2 0x42 -extern spinlock_t i8253_lock; +extern ipipe_spinlock_t i8253_lock;extern struct clock_event_device *global_clock_event;
include/asm-i386/i8259.h +1 -1
@@ -7,7 +7,7 @@ extern unsigned int cached_irq_mask;#define cached_master_mask (__byte(0, cached_irq_mask))#define cached_slave_mask (__byte(1, cached_irq_mask)) -extern spinlock_t i8259A_lock; +extern ipipe_spinlock_t i8259A_lock;extern void init_8259A (int auto_eoi);extern void enable_8259A_irq (unsigned int irq);
include/asm-i386/ipipe.h new file +205 -0
205 lines not on this page · raw message
include/asm-i386/ipipe_base.h new file +182 -0
182 lines not on this page · raw message
include/asm-i386/irqflags.h +115 -4
177 lines not on this page · raw message
include/asm-i386/mmu_context.h +3 -0
@@ -79,8 +79,11 @@ static inline void switch_mm(struct mm_s#define activate_mm (prev, next) \ do { \ + unsigned long flags; \ paravirt_activate_mm(prev, next); \ + local_irq_save_hw_cond(flags); \ switch_mm((prev),(next),NULL); \ + local_irq_restore_hw_cond(flags); \ } while(0);#endif
include/asm-i386/nmi.h +2 -1
@@ -29,7 +29,8 @@ extern void setup_apic_nmi_watchdog (voiextern void stop_apic_nmi_watchdog (void *);extern void disable_timer_nmi_watchdog (void );extern void enable_timer_nmi_watchdog (void ); -extern int nmi_watchdog_tick (struct pt_regs * regs,unsigned reason); +extern int (*nmi_watchdog_tick)(struct pt_regs * regs,unsigned reason); +extern void die_nmi (struct pt_regs *,const char *msg);extern atomic_t nmi_active;extern unsigned int nmi_watchdog;
include/asm-i386/spinlock.h +1 -1
@@ -54,7 +54,7 @@ static inline void __raw_spin_lock(raw_s* NOTE: there's an irqs-on section here, which normally would have to be * irq-traced, but on CONFIG_TRACE_IRQFLAGS we never use this variant. */ -#ifndef CONFIG_PROVE_LOCKING +#if !defined(CONFIG_PROVE_LOCKING ) && !defined(CONFIG_IPIPE )static inline void __raw_spin_lock_flags (raw_spinlock_t *lock,unsigned long flags) { asm volatile(
include/linux/clockchips.h +1 -0
@@ -91,6 +91,7 @@ struct clock_event_device {struct list_head list;enum clock_event_mode mode;ktime_t next_event; +int64_t delta; };/*
include/linux/hardirq.h +2 -2
@@ -146,7 +146,7 @@ extern void irq_enter(void);*/ extern void irq_exit (void ); -#define nmi_enter () do { lockdep_off(); __irq_enter(); } while (0) -#define nmi_exit () do { __irq_exit(); lockdep_on(); } while (0) +#define nmi_enter () do { if (ipipe_root_domain_p) { lockdep_off(); __irq_enter(); } } while (0) +#define nmi_exit () do { if (ipipe_root_domain_p) { __irq_exit(); lockdep_on(); } } while (0)#endif /* LINUX_HARDIRQ_H */
include/linux/ipipe.h new file +552 -0
483 lines not on this page · raw message
include/linux/ipipe_base.h new file +77 -0
77 lines not on this page · raw message
include/linux/ipipe_compat.h new file +54 -0
54 lines not on this page · raw message
include/linux/ipipe_percpu.h new file +69 -0
69 lines not on this page · raw message
include/linux/ipipe_tickdev.h new file +55 -0
55 lines not on this page · raw message
include/linux/ipipe_trace.h new file +65 -0
65 lines not on this page · raw message
include/linux/spinlock.h +138 -22
160 lines not on this page · raw message
kernel/ipipe/Kconfig.debug new file +88 -0
88 lines not on this page · raw message
kernel/ipipe/core.c new file +1623 -0
1,623 lines not on this page · raw message
kernel/ipipe/tracer.c new file +1342 -0
1,342 lines not on this page · raw message
kernel/irq/chip.c +128 -0
128 lines not on this page · raw message
kernel/printk.c +77 -0
77 lines not on this page · raw message
kernel/sched.c +71 -3
74 lines not on this page · raw message
mm/memory.c +177 -33
210 lines not on this page · raw message
The rest of this diff is not shown. View the raw message.
Part of the diff is not shown here. View the raw message.