From 40d269696c5de58c38df86d11f7debfb970c474d Mon Sep 17 00:00:00 2001 From: "kaf24@scramble.cl.cam.ac.uk" Date: Tue, 25 Mar 2003 14:10:16 +0000 Subject: bitkeeper revision 1.160 (3e806348iI6F7p-OrCqKtE4h8_NgxQ) .del-xor.h~2cd144e48fc282fb: Delete: old/xenolinux-2.4.16-sparse/include/asm-xeno/xor.h .del-vga.h~f739bcd0d15a060b: Delete: old/xenolinux-2.4.16-sparse/include/asm-xeno/vga.h .del-user.h~2416efc51bfdf653: Delete: old/xenolinux-2.4.16-sparse/include/asm-xeno/user.h .del-unistd.h~542a4265bbde875f: Delete: old/xenolinux-2.4.16-sparse/include/asm-xeno/unistd.h .del-unaligned.h~3720d8e6f6489c70: Delete: old/xenolinux-2.4.16-sparse/include/asm-xeno/unaligned.h .del-ucontext.h~7c514eccb96e5c2c: Delete: old/xenolinux-2.4.16-sparse/include/asm-xeno/ucontext.h .del-uaccess.h~1db7128cf065d28: Delete: old/xenolinux-2.4.16-sparse/include/asm-xeno/uaccess.h .del-types.h~6f89af02373cf40e: Delete: old/xenolinux-2.4.16-sparse/include/asm-xeno/types.h .del-tlb.h~36a10111face8cf8: Delete: old/xenolinux-2.4.16-sparse/include/asm-xeno/tlb.h .del-timex.h~14ba40d5403480f8: Delete: old/xenolinux-2.4.16-sparse/include/asm-xeno/timex.h .del-termios.h~10cb1919354bb3c: Delete: old/xenolinux-2.4.16-sparse/include/asm-xeno/termios.h .del-termbits.h~9f49d578b6425137: Delete: old/xenolinux-2.4.16-sparse/include/asm-xeno/termbits.h .del-system.h~1209f9cb8d09be: Delete: old/xenolinux-2.4.16-sparse/include/asm-xeno/system.h .del-swapfile.c~28c1c327b22a067f: Delete: old/xenolinux-2.4.16-sparse/mm/swapfile.c .del-string.h~1bd164bf2f37435a: Delete: old/xenolinux-2.4.16-sparse/include/asm-xeno/string.h .del-string-486.h~70f2949afd4c7217: Delete: old/xenolinux-2.4.16-sparse/include/asm-xeno/string-486.h .del-statfs.h~925b3af593956e2d: Delete: old/xenolinux-2.4.16-sparse/include/asm-xeno/statfs.h .del-stat.h~e85bc81529de3a4a: Delete: old/xenolinux-2.4.16-sparse/include/asm-xeno/stat.h .del-panic.c~5033fabb3f2e710c: Delete: old/xenolinux-2.4.16-sparse/kernel/panic.c .del-mremap.c~5787787c5a3b49d: Delete: old/xenolinux-2.4.16-sparse/mm/mremap.c .del-memory.c~ec1a749ca2ed8acd: Delete: old/xenolinux-2.4.16-sparse/mm/memory.c .del-major.h~7653e946e9bf8159: Delete: old/xenolinux-2.4.16-sparse/include/linux/major.h .del-main.c~de169eb833d5a5cb: Delete: old/xenolinux-2.4.16-sparse/init/main.c .del-debug.h~e0aa141e34ec6221: Delete: old/xenolinux-2.4.16-sparse/include/linux/sunrpc/debug.h .del-blk.h~87e7b6403472571f: Delete: old/xenolinux-2.4.16-sparse/include/linux/blk.h .del-spinlock.h~fc0a4c0ddea83815: Delete: old/xenolinux-2.4.16-sparse/include/asm-xeno/spinlock.h .del-softirq.h~c188e7ac18c858a9: Delete: old/xenolinux-2.4.16-sparse/include/asm-xeno/softirq.h .del-sockios.h~65e1b7ba563df2c: Delete: old/xenolinux-2.4.16-sparse/include/asm-xeno/sockios.h .del-socket.h~e3ba5757776f00c: Delete: old/xenolinux-2.4.16-sparse/include/asm-xeno/socket.h .del-smplock.h~72176dfb8142375e: Delete: old/xenolinux-2.4.16-sparse/include/asm-xeno/smplock.h .del-smp.h~80313a5f7eb193bb: Delete: old/xenolinux-2.4.16-sparse/include/asm-xeno/smp.h .del-signal.h~2f1c9e8a4364ed8: Delete: old/xenolinux-2.4.16-sparse/include/asm-xeno/signal.h .del-siginfo.h~348801659d7e1334: Delete: old/xenolinux-2.4.16-sparse/include/asm-xeno/siginfo.h .del-sigcontext.h~1b647a394613b0dc: Delete: old/xenolinux-2.4.16-sparse/include/asm-xeno/sigcontext.h .del-shmparam.h~c83ce37d9b16061c: Delete: old/xenolinux-2.4.16-sparse/include/asm-xeno/shmparam.h .del-shmbuf.h~3ff48e518b9ecb0a: Delete: old/xenolinux-2.4.16-sparse/include/asm-xeno/shmbuf.h .del-setup.h~2d7d5e0b8c7c48dc: Delete: old/xenolinux-2.4.16-sparse/include/asm-xeno/setup.h .del-serial.h~90dee919c827ab29: Delete: old/xenolinux-2.4.16-sparse/include/asm-xeno/serial.h .del-sembuf.h~f0fa7347b9fc071: Delete: old/xenolinux-2.4.16-sparse/include/asm-xeno/sembuf.h .del-semaphore.h~d9f40f7e118c9d3c: Delete: old/xenolinux-2.4.16-sparse/include/asm-xeno/semaphore.h .del-segment.h~cc492acab0d69477: Delete: old/xenolinux-2.4.16-sparse/include/asm-xeno/segment.h .del-scatterlist.h~4be6ff4f53a3579b: Delete: old/xenolinux-2.4.16-sparse/include/asm-xeno/scatterlist.h .del-rwsem.h~c9865b4ec1423b3a: Delete: old/xenolinux-2.4.16-sparse/include/asm-xeno/rwsem.h .del-rwlock.h~3e6f58ae32c920e9: Delete: old/xenolinux-2.4.16-sparse/include/asm-xeno/rwlock.h .del-resource.h~7e8eaa833cc25dca: Delete: old/xenolinux-2.4.16-sparse/include/asm-xeno/resource.h .del-ptrace.h~c55079be77b9ee19: Delete: old/xenolinux-2.4.16-sparse/include/asm-xeno/ptrace.h .del-processor.h~52612a255dfb7cbb: Delete: old/xenolinux-2.4.16-sparse/include/asm-xeno/processor.h .del-posix_types.h~b6e7c803f3dbab8: Delete: old/xenolinux-2.4.16-sparse/include/asm-xeno/posix_types.h .del-poll.h~f9b451e3ea9e50c: Delete: old/xenolinux-2.4.16-sparse/include/asm-xeno/poll.h .del-pgtable.h~43ac63ace2e93820: Delete: old/xenolinux-2.4.16-sparse/include/asm-xeno/pgtable.h .del-pgtable-3level.h~abbe18b96121bd83: Delete: old/xenolinux-2.4.16-sparse/include/asm-xeno/pgtable-3level.h .del-pgtable-2level.h~8fe0307e54d8bf9b: Delete: old/xenolinux-2.4.16-sparse/include/asm-xeno/pgtable-2level.h .del-pgalloc.h~9e75e06aeb89d316: Delete: old/xenolinux-2.4.16-sparse/include/asm-xeno/pgalloc.h .del-parport.h~cff09d1bc0f89454: Delete: old/xenolinux-2.4.16-sparse/include/asm-xeno/parport.h .del-param.h~471736b770596742: Delete: old/xenolinux-2.4.16-sparse/include/asm-xeno/param.h .del-page.h~865cbedbe3bc818e: Delete: old/xenolinux-2.4.16-sparse/include/asm-xeno/page.h .del-namei.h~38354dac74ae2dd8: Delete: old/xenolinux-2.4.16-sparse/include/asm-xeno/namei.h .del-mtrr.h~ea4e1ec9703521e8: Delete: old/xenolinux-2.4.16-sparse/include/asm-xeno/mtrr.h .del-msr.h~a6998ff4f5da0e0c: Delete: old/xenolinux-2.4.16-sparse/include/asm-xeno/msr.h .del-msgbuf.h~5da37442976489a0: Delete: old/xenolinux-2.4.16-sparse/include/asm-xeno/msgbuf.h .del-mpspec.h~381f4baa7d484bfb: Delete: old/xenolinux-2.4.16-sparse/include/asm-xeno/mpspec.h .del-module.h~5a2fa3572f0b6bae: Delete: old/xenolinux-2.4.16-sparse/include/asm-xeno/module.h .del-mmx.h~ef22db6d3bb87f3a: Delete: old/xenolinux-2.4.16-sparse/include/asm-xeno/mmx.h .del-mmu_context.h~9fbf061b3d508d67: Delete: old/xenolinux-2.4.16-sparse/include/asm-xeno/mmu_context.h .del-mmu.h~ba2b86348e168416: Delete: old/xenolinux-2.4.16-sparse/include/asm-xeno/mmu.h .del-mman.h~18ee2a138def6b36: Delete: old/xenolinux-2.4.16-sparse/include/asm-xeno/mman.h .del-mca_dma.h~eddb775e770502cb: Delete: old/xenolinux-2.4.16-sparse/include/asm-xeno/mca_dma.h .del-mc146818rtc.h~c21b56e82a291c22: Delete: old/xenolinux-2.4.16-sparse/include/asm-xeno/mc146818rtc.h .del-math_emu.h~4613a62a919e4aa1: Delete: old/xenolinux-2.4.16-sparse/include/asm-xeno/math_emu.h .del-locks.h~399a95316c4c9ba7: Delete: old/xenolinux-2.4.16-sparse/include/asm-xeno/locks.h .del-linux_logo.h~a388673ba10b8bf8: Delete: old/xenolinux-2.4.16-sparse/include/asm-xeno/linux_logo.h .del-ldt.h~c03c75bf2fa23f40: Delete: old/xenolinux-2.4.16-sparse/include/asm-xeno/ldt.h .del-kmap_types.h~eed873e2f55dcd50: Delete: old/xenolinux-2.4.16-sparse/include/asm-xeno/kmap_types.h .del-keyboard.h~3d6d63ef29bf066c: Delete: old/xenolinux-2.4.16-sparse/include/asm-xeno/keyboard.h .del-kdbprivate.h~8d8ff2e38b419e4c: Delete: old/xenolinux-2.4.16-sparse/include/asm-xeno/kdbprivate.h .del-kdb.h~1981de7db9b5d353: Delete: old/xenolinux-2.4.16-sparse/include/asm-xeno/kdb.h .del-irq.h~4702eca4cd45e793: Delete: old/xenolinux-2.4.16-sparse/include/asm-xeno/irq.h .del-ipcbuf.h~f3ed215ace7ac98f: Delete: old/xenolinux-2.4.16-sparse/include/asm-xeno/ipcbuf.h .del-ipc.h~8e9498e43aadf144: Delete: old/xenolinux-2.4.16-sparse/include/asm-xeno/ipc.h .del-ioctls.h~263229b882e93cfd: Delete: old/xenolinux-2.4.16-sparse/include/asm-xeno/ioctls.h .del-ioctl.h~bac00725b5ef0269: Delete: old/xenolinux-2.4.16-sparse/include/asm-xeno/ioctl.h .del-io_apic.h~d3ebb23a7540d727: Delete: old/xenolinux-2.4.16-sparse/include/asm-xeno/io_apic.h .del-io.h~28def6bcf143a288: Delete: old/xenolinux-2.4.16-sparse/include/asm-xeno/io.h .del-init.h~f94c9cf325ec8a73: Delete: old/xenolinux-2.4.16-sparse/include/asm-xeno/init.h .del-ide.h~1f18b51858f7de58: Delete: old/xenolinux-2.4.16-sparse/include/asm-xeno/ide.h .del-i387.h~a09953497f47e974: Delete: old/xenolinux-2.4.16-sparse/include/asm-xeno/i387.h .del-hypervisor.h~d2b860c8a01e7b7d: Delete: old/xenolinux-2.4.16-sparse/include/asm-xeno/hypervisor.h .del-hypervisor-ifs~7df8ec9215cf9987: Delete: old/xenolinux-2.4.16-sparse/include/asm-xeno/hypervisor-ifs .del-hw_irq.h~85b1e98ab3922232: Delete: old/xenolinux-2.4.16-sparse/include/asm-xeno/hw_irq.h .del-highmem.h~961c664eb3006cf6: Delete: old/xenolinux-2.4.16-sparse/include/asm-xeno/highmem.h .del-hdreg.h~af3fea048084de8c: Delete: old/xenolinux-2.4.16-sparse/include/asm-xeno/hdreg.h .del-hardirq.h~b78749db9e13d06: Delete: old/xenolinux-2.4.16-sparse/include/asm-xeno/hardirq.h .del-floppy.h~fc1f18b688d0a155: Delete: old/xenolinux-2.4.16-sparse/include/asm-xeno/floppy.h .del-fixmap.h~63fec5045e83d303: Delete: old/xenolinux-2.4.16-sparse/include/asm-xeno/fixmap.h .del-fcntl.h~5e345023494b641: Delete: old/xenolinux-2.4.16-sparse/include/asm-xeno/fcntl.h .del-errno.h~2d307a9167d276be: Delete: old/xenolinux-2.4.16-sparse/include/asm-xeno/errno.h .del-elf.h~5b4118314cd7dda8: Delete: old/xenolinux-2.4.16-sparse/include/asm-xeno/elf.h .del-dma.h~bfdf9bdb575308fb: Delete: old/xenolinux-2.4.16-sparse/include/asm-xeno/dma.h .del-div64.h~e6438de5f5adcdad: Delete: old/xenolinux-2.4.16-sparse/include/asm-xeno/div64.h .del-desc.h~b339bfef4b0848b3: Delete: old/xenolinux-2.4.16-sparse/include/asm-xeno/desc.h .del-delay.h~4f5c1f98fef9f480: Delete: old/xenolinux-2.4.16-sparse/include/asm-xeno/delay.h .del-debugreg.h~94ad0b2f7ce81945: Delete: old/xenolinux-2.4.16-sparse/include/asm-xeno/debugreg.h .del-current.h~4693f192fd42b4a6: Delete: old/xenolinux-2.4.16-sparse/include/asm-xeno/current.h .del-cpufeature.h~9ee68ee4f8b525fd: Delete: old/xenolinux-2.4.16-sparse/include/asm-xeno/cpufeature.h .del-checksum.h~db4bcfc8958c5d3f: Delete: old/xenolinux-2.4.16-sparse/include/asm-xeno/checksum.h .del-cache.h~64626a79a0712d70: Delete: old/xenolinux-2.4.16-sparse/include/asm-xeno/cache.h .del-byteorder.h~404697d4e47c3345: Delete: old/xenolinux-2.4.16-sparse/include/asm-xeno/byteorder.h .del-bugs.h~df29bf2b4f74ccaf: Delete: old/xenolinux-2.4.16-sparse/include/asm-xeno/bugs.h .del-boot.h~c7462d481f4a9: Delete: old/xenolinux-2.4.16-sparse/include/asm-xeno/boot.h .del-bitops.h~ef7ea34f8a17ed86: Delete: old/xenolinux-2.4.16-sparse/include/asm-xeno/bitops.h .del-atomic.h~55cde2d93d09526: Delete: old/xenolinux-2.4.16-sparse/include/asm-xeno/atomic.h .del-apicdef.h~4ce7611333e9d1fc: Delete: old/xenolinux-2.4.16-sparse/include/asm-xeno/apicdef.h .del-usercopy.c~b60ef441a832ff84: Delete: old/xenolinux-2.4.16-sparse/arch/xeno/lib/usercopy.c .del-tty_io.c~b7ee058bd0b4d969: Delete: old/xenolinux-2.4.16-sparse/drivers/char/tty_io.c .del-traps.c~58f6978ca3914806: Delete: old/xenolinux-2.4.16-sparse/arch/xeno/kernel/traps.c .del-time.c~8772141ba7a5b7be: Delete: old/xenolinux-2.4.16-sparse/arch/xeno/kernel/time.c .del-sys_i386.c~f84bd504c2085dda: Delete: old/xenolinux-2.4.16-sparse/arch/xeno/kernel/sys_i386.c .del-strstr.c~e80f16ebdccc4062: Delete: old/xenolinux-2.4.16-sparse/arch/xeno/lib/strstr.c .del-signal.c~45454d7374cce0a1: Delete: old/xenolinux-2.4.16-sparse/arch/xeno/kernel/signal.c .del-setup.c~6f22e121db6f1bc: Delete: old/xenolinux-2.4.16-sparse/arch/xeno/kernel/setup.c .del-semaphore.c~3e7a2194beb1c8e4: Delete: old/xenolinux-2.4.16-sparse/arch/xeno/kernel/semaphore.c .del-rd.c~99ae381b254bd356: Delete: old/xenolinux-2.4.16-sparse/drivers/block/rd.c .del-ptrace.c~8cb5d0b722ab58b9: Delete: old/xenolinux-2.4.16-sparse/arch/xeno/kernel/ptrace.c .del-process.c~ab23652fb4106ce3: Delete: old/xenolinux-2.4.16-sparse/arch/xeno/kernel/process.c .del-old-checksum.c~c3dfe224f68ed131: Delete: old/xenolinux-2.4.16-sparse/arch/xeno/lib/old-checksum.c .del-mmx.c~3f27e7b4c5f3d68d: Delete: old/xenolinux-2.4.16-sparse/arch/xeno/lib/mmx.c .del-mmu_context.c~ef75b8e1f894e729: Delete: old/xenolinux-2.4.16-sparse/arch/xeno/mm/mmu_context.c .del-memcpy.c~91d0cb7e4e922f6e: Delete: old/xenolinux-2.4.16-sparse/arch/xeno/lib/memcpy.c .del-ll_rw_blk.c~2c64b7fc36db523: Delete: old/xenolinux-2.4.16-sparse/drivers/block/ll_rw_blk.c .del-ldt.c~102d26cc1b63c830: Delete: old/xenolinux-2.4.16-sparse/arch/xeno/kernel/ldt.c .del-irq.c~2bd9b09d889fd6b8: Delete: old/xenolinux-2.4.16-sparse/arch/xeno/kernel/irq.c .del-ioport.c~2d86d4fbba2e2583: Delete: old/xenolinux-2.4.16-sparse/arch/xeno/kernel/ioport.c .del-iodebug.c~982cc58799104651: Delete: old/xenolinux-2.4.16-sparse/arch/xeno/lib/iodebug.c .del-init_task.c~53258077ed40d6be: Delete: old/xenolinux-2.4.16-sparse/arch/xeno/kernel/init_task.c .del-init.c~3693c99014d6fc0d: Delete: old/xenolinux-2.4.16-sparse/arch/xeno/mm/init.c .del-i387.c~571a2fa27676375: Delete: old/xenolinux-2.4.16-sparse/arch/xeno/kernel/i387.c .del-i386_ksyms.c~68a55ed15a69598: Delete: old/xenolinux-2.4.16-sparse/arch/xeno/kernel/i386_ksyms.c .del-hypervisor.c~a227c7d0b6a5fd42: Delete: old/xenolinux-2.4.16-sparse/arch/xeno/mm/hypervisor.c .del-getuser.S~1ef189b582390381: Delete: old/xenolinux-2.4.16-sparse/arch/xeno/lib/getuser.S .del-get_unmapped_area.c~3ad7561469aabec: Delete: old/xenolinux-2.4.16-sparse/arch/xeno/mm/get_unmapped_area.c .del-fault.c~4f5a4a1859484525: Delete: old/xenolinux-2.4.16-sparse/arch/xeno/mm/fault.c .del-extable.c~b98087717f427f26: Delete: old/xenolinux-2.4.16-sparse/arch/xeno/mm/extable.c .del-exec.c~2557f6564ffdb2e0: Delete: old/xenolinux-2.4.16-sparse/fs/exec.c .del-delay.c~bddd92dcfafdf5ce: Delete: old/xenolinux-2.4.16-sparse/arch/xeno/lib/delay.c .del-dec_and_lock.c~5ac45f1c3a6593c: Delete: old/xenolinux-2.4.16-sparse/arch/xeno/lib/dec_and_lock.c .del-checksum.S~be8f8ce2d8964249: Delete: old/xenolinux-2.4.16-sparse/arch/xeno/lib/checksum.S .del-apic.h~7e52954d00c0c4f: Delete: old/xenolinux-2.4.16-sparse/include/asm-xeno/apic.h .del-a.out.h~7ace48e4361e6b64: Delete: old/xenolinux-2.4.16-sparse/include/asm-xeno/a.out.h .del-Makefile~92a08e51252c8752: Delete: old/xenolinux-2.4.16-sparse/arch/xeno/lib/Makefile .del-Makefile~4b457be6621a5d5a: Delete: old/xenolinux-2.4.16-sparse/arch/xeno/mm/Makefile .del-Config.in~e79aa726643e8d8f: Delete: old/xenolinux-2.4.16-sparse/drivers/block/Config.in .del-xl_block_test.c~aac5669d8f638637: Delete: old/xenolinux-2.4.16-sparse/arch/xeno/drivers/block/xl_block_test.c .del-xl_block.c~cee1f87e3b5f99a: Delete: old/xenolinux-2.4.16-sparse/arch/xeno/drivers/block/xl_block.c .del-vmlinux.lds~95fa124a7440e17f: Delete: old/xenolinux-2.4.16-sparse/arch/xeno/vmlinux.lds .del-vfr.c~32830c0144380827: Delete: old/xenolinux-2.4.16-sparse/arch/xeno/drivers/dom0/vfr.c .del-network.c~cc961aaabe0a0a77: Delete: old/xenolinux-2.4.16-sparse/arch/xeno/drivers/network/network.c .del-mk~196fb97e64c3e303: Delete: old/xenolinux-2.4.16-sparse/mk .del-hypervisor.c~78a3960ab18cdbd5: Delete: old/xenolinux-2.4.16-sparse/arch/xeno/kernel/hypervisor.c .del-head.S~7976f74358c43bf7: Delete: old/xenolinux-2.4.16-sparse/arch/xeno/kernel/head.S .del-entry.S~126fc1af28caab2f: Delete: old/xenolinux-2.4.16-sparse/arch/xeno/kernel/entry.S .del-dom0_ops.h~ebc6f2ba40efd4f8: Delete: old/xenolinux-2.4.16-sparse/arch/xeno/drivers/dom0/dom0_ops.h .del-dom0_memory.c~89a290b73b42dafb: Delete: old/xenolinux-2.4.16-sparse/arch/xeno/drivers/dom0/dom0_memory.c .del-dom0_core.c~b6447635a1dff297: Delete: old/xenolinux-2.4.16-sparse/arch/xeno/drivers/dom0/dom0_core.c .del-dom0_block.c~56aa20e79fb98f4a: Delete: old/xenolinux-2.4.16-sparse/arch/xeno/drivers/dom0/dom0_block.c .del-defconfig~4e50d7fc220d1aab: Delete: old/xenolinux-2.4.16-sparse/arch/xeno/defconfig .del-console.c~de0ee868d96d8dbe: Delete: old/xenolinux-2.4.16-sparse/arch/xeno/drivers/console/console.c .del-config.in~4afe788e4691d222: Delete: old/xenolinux-2.4.16-sparse/arch/xeno/config.in .del-Makefile~fda4420ca7a5c777: Delete: old/xenolinux-2.4.16-sparse/arch/xeno/drivers/dom0/Makefile .del-Makefile~d7ea62ca90003f31: Delete: old/xenolinux-2.4.16-sparse/arch/xeno/boot/Makefile .del-Makefile~c6614e5f6a40fe8: Delete: old/xenolinux-2.4.16-sparse/arch/xeno/drivers/console/Makefile .del-Makefile~8f946627850d08: Delete: old/xenolinux-2.4.16-sparse/Makefile .del-Makefile~4b0def0c8c803698: Delete: old/xenolinux-2.4.16-sparse/arch/xeno/drivers/block/Makefile .del-Makefile~40bc4fd761c2e3e4: Delete: old/xenolinux-2.4.16-sparse/arch/xeno/Makefile .del-Makefile~225ee771b0fb73fa: Delete: old/xenolinux-2.4.16-sparse/arch/xeno/kernel/Makefile .del-Makefile~1d57425ac7aac33: Delete: old/xenolinux-2.4.16-sparse/arch/xeno/drivers/network/Makefile --- .../arch/xeno/kernel/semaphore.c | 292 --------------------- 1 file changed, 292 deletions(-) delete mode 100644 old/xenolinux-2.4.16-sparse/arch/xeno/kernel/semaphore.c (limited to 'old/xenolinux-2.4.16-sparse/arch/xeno/kernel/semaphore.c') diff --git a/old/xenolinux-2.4.16-sparse/arch/xeno/kernel/semaphore.c b/old/xenolinux-2.4.16-sparse/arch/xeno/kernel/semaphore.c deleted file mode 100644 index 08ff686f1e..0000000000 --- a/old/xenolinux-2.4.16-sparse/arch/xeno/kernel/semaphore.c +++ /dev/null @@ -1,292 +0,0 @@ -/* - * i386 semaphore implementation. - * - * (C) Copyright 1999 Linus Torvalds - * - * Portions Copyright 1999 Red Hat, Inc. - * - * This program is free software; you can redistribute it and/or - * modify it under the terms of the GNU General Public License - * as published by the Free Software Foundation; either version - * 2 of the License, or (at your option) any later version. - * - * rw semaphores implemented November 1999 by Benjamin LaHaise - */ -#include -#include -#include - -/* - * Semaphores are implemented using a two-way counter: - * The "count" variable is decremented for each process - * that tries to acquire the semaphore, while the "sleeping" - * variable is a count of such acquires. - * - * Notably, the inline "up()" and "down()" functions can - * efficiently test if they need to do any extra work (up - * needs to do something only if count was negative before - * the increment operation. - * - * "sleeping" and the contention routine ordering is - * protected by the semaphore spinlock. - * - * Note that these functions are only called when there is - * contention on the lock, and as such all this is the - * "non-critical" part of the whole semaphore business. The - * critical part is the inline stuff in - * where we want to avoid any extra jumps and calls. - */ - -/* - * Logic: - * - only on a boundary condition do we need to care. When we go - * from a negative count to a non-negative, we wake people up. - * - when we go from a non-negative count to a negative do we - * (a) synchronize with the "sleeper" count and (b) make sure - * that we're on the wakeup list before we synchronize so that - * we cannot lose wakeup events. - */ - -void __up(struct semaphore *sem) -{ - wake_up(&sem->wait); -} - -static spinlock_t semaphore_lock = SPIN_LOCK_UNLOCKED; - -void __down(struct semaphore * sem) -{ - struct task_struct *tsk = current; - DECLARE_WAITQUEUE(wait, tsk); - tsk->state = TASK_UNINTERRUPTIBLE; - add_wait_queue_exclusive(&sem->wait, &wait); - - spin_lock_irq(&semaphore_lock); - sem->sleepers++; - for (;;) { - int sleepers = sem->sleepers; - - /* - * Add "everybody else" into it. They aren't - * playing, because we own the spinlock. - */ - if (!atomic_add_negative(sleepers - 1, &sem->count)) { - sem->sleepers = 0; - break; - } - sem->sleepers = 1; /* us - see -1 above */ - spin_unlock_irq(&semaphore_lock); - - schedule(); - tsk->state = TASK_UNINTERRUPTIBLE; - spin_lock_irq(&semaphore_lock); - } - spin_unlock_irq(&semaphore_lock); - remove_wait_queue(&sem->wait, &wait); - tsk->state = TASK_RUNNING; - wake_up(&sem->wait); -} - -int __down_interruptible(struct semaphore * sem) -{ - int retval = 0; - struct task_struct *tsk = current; - DECLARE_WAITQUEUE(wait, tsk); - tsk->state = TASK_INTERRUPTIBLE; - add_wait_queue_exclusive(&sem->wait, &wait); - - spin_lock_irq(&semaphore_lock); - sem->sleepers ++; - for (;;) { - int sleepers = sem->sleepers; - - /* - * With signals pending, this turns into - * the trylock failure case - we won't be - * sleeping, and we* can't get the lock as - * it has contention. Just correct the count - * and exit. - */ - if (signal_pending(current)) { - retval = -EINTR; - sem->sleepers = 0; - atomic_add(sleepers, &sem->count); - break; - } - - /* - * Add "everybody else" into it. They aren't - * playing, because we own the spinlock. The - * "-1" is because we're still hoping to get - * the lock. - */ - if (!atomic_add_negative(sleepers - 1, &sem->count)) { - sem->sleepers = 0; - break; - } - sem->sleepers = 1; /* us - see -1 above */ - spin_unlock_irq(&semaphore_lock); - - schedule(); - tsk->state = TASK_INTERRUPTIBLE; - spin_lock_irq(&semaphore_lock); - } - spin_unlock_irq(&semaphore_lock); - tsk->state = TASK_RUNNING; - remove_wait_queue(&sem->wait, &wait); - wake_up(&sem->wait); - return retval; -} - -/* - * Trylock failed - make sure we correct for - * having decremented the count. - * - * We could have done the trylock with a - * single "cmpxchg" without failure cases, - * but then it wouldn't work on a 386. - */ -int __down_trylock(struct semaphore * sem) -{ - int sleepers; - unsigned long flags; - - spin_lock_irqsave(&semaphore_lock, flags); - sleepers = sem->sleepers + 1; - sem->sleepers = 0; - - /* - * Add "everybody else" and us into it. They aren't - * playing, because we own the spinlock. - */ - if (!atomic_add_negative(sleepers, &sem->count)) - wake_up(&sem->wait); - - spin_unlock_irqrestore(&semaphore_lock, flags); - return 1; -} - - -/* - * The semaphore operations have a special calling sequence that - * allow us to do a simpler in-line version of them. These routines - * need to convert that sequence back into the C sequence when - * there is contention on the semaphore. - * - * %ecx contains the semaphore pointer on entry. Save the C-clobbered - * registers (%eax, %edx and %ecx) except %eax when used as a return - * value.. - */ -asm( -".text\n" -".align 4\n" -".globl __down_failed\n" -"__down_failed:\n\t" -#if defined(CONFIG_FRAME_POINTER) - "pushl %ebp\n\t" - "movl %esp,%ebp\n\t" -#endif - "pushl %eax\n\t" - "pushl %edx\n\t" - "pushl %ecx\n\t" - "call __down\n\t" - "popl %ecx\n\t" - "popl %edx\n\t" - "popl %eax\n\t" -#if defined(CONFIG_FRAME_POINTER) - "movl %ebp,%esp\n\t" - "popl %ebp\n\t" -#endif - "ret" -); - -asm( -".text\n" -".align 4\n" -".globl __down_failed_interruptible\n" -"__down_failed_interruptible:\n\t" -#if defined(CONFIG_FRAME_POINTER) - "pushl %ebp\n\t" - "movl %esp,%ebp\n\t" -#endif - "pushl %edx\n\t" - "pushl %ecx\n\t" - "call __down_interruptible\n\t" - "popl %ecx\n\t" - "popl %edx\n\t" -#if defined(CONFIG_FRAME_POINTER) - "movl %ebp,%esp\n\t" - "popl %ebp\n\t" -#endif - "ret" -); - -asm( -".text\n" -".align 4\n" -".globl __down_failed_trylock\n" -"__down_failed_trylock:\n\t" -#if defined(CONFIG_FRAME_POINTER) - "pushl %ebp\n\t" - "movl %esp,%ebp\n\t" -#endif - "pushl %edx\n\t" - "pushl %ecx\n\t" - "call __down_trylock\n\t" - "popl %ecx\n\t" - "popl %edx\n\t" -#if defined(CONFIG_FRAME_POINTER) - "movl %ebp,%esp\n\t" - "popl %ebp\n\t" -#endif - "ret" -); - -asm( -".text\n" -".align 4\n" -".globl __up_wakeup\n" -"__up_wakeup:\n\t" - "pushl %eax\n\t" - "pushl %edx\n\t" - "pushl %ecx\n\t" - "call __up\n\t" - "popl %ecx\n\t" - "popl %edx\n\t" - "popl %eax\n\t" - "ret" -); - -/* - * rw spinlock fallbacks - */ -#if defined(CONFIG_SMP) -asm( -" -.align 4 -.globl __write_lock_failed -__write_lock_failed: - " LOCK "addl $" RW_LOCK_BIAS_STR ",(%eax) -1: rep; nop - cmpl $" RW_LOCK_BIAS_STR ",(%eax) - jne 1b - - " LOCK "subl $" RW_LOCK_BIAS_STR ",(%eax) - jnz __write_lock_failed - ret - - -.align 4 -.globl __read_lock_failed -__read_lock_failed: - lock ; incl (%eax) -1: rep; nop - cmpl $1,(%eax) - js 1b - - lock ; decl (%eax) - js __read_lock_failed - ret -" -); -#endif -- cgit v1.2.3