* Realtime patch on OMAP2
@ 2006-12-21 2:06 Kyungmin Park
2006-12-21 9:46 ` Dirk Behme
0 siblings, 1 reply; 2+ messages in thread
From: Kyungmin Park @ 2006-12-21 2:06 UTC (permalink / raw)
To: linux-omap-open-source
[-- Attachment #1: Type: text/plain, Size: 2402 bytes --]
Hi,
With Dirk Behme's mail, I try he realtime preemption patch on OMAP2
linux-2.6.19.tar.bz2 (clean Linus one, not our OMAP tree)
patch-2.6.19-rt15
patch-2.6.19-rt15-fixes.diff
arm-hrt-kconfig-patch.txt
arm-no-hz-patch.txt
arm_omap_clocksource_patch.txt
arm_omap_clockevents_patch.txt
But it's not enough on OMAP2
First, ARMv6 support
- I add the cmpxchg in include/asm-arm/atomic.h
#ifndef CONFIG_SMP
/*
* Atomic compare and exchange.
*/
#define __HAVE_ARCH_CMPXCHG 1
extern unsigned long wrong_size_cmpxchg(volatile void *ptr);
static inline unsigned long __cmpxchg(volatile void *ptr,
unsigned long old,
unsigned long new, int size)
{
volatile unsigned long *p = ptr;
if (size == 4) {
unsigned long oldval, res;
do {
__asm__ __volatile__("@ atomic_cmpxchg\n"
"ldrex %1, [%2]\n"
"mov %0, #0\n"
"teq %1, %3\n"
"strexeq %0, %4, [%2]\n"
: "=&r" (res), "=&r" (oldval)
: "r" (p), "Ir" (old), "r" (new)
: "cc");
} while (res);
return oldval;
} else
return wrong_size_cmpxchg(ptr);
}
#define cmpxchg(ptr,o,n) \
({ \
__typeof__(*(ptr)) _o_ = (o); \
__typeof__(*(ptr)) _n_ = (n); \
(__typeof__(*(ptr))) __cmpxchg((ptr), (unsigned long)_o_, \
(unsigned long)_n_, sizeof(*(ptr))); \
})
#endif
Second, smc91x timeout problem
- I found a patch in kernel-mailing list [1].
but I'm not sure it's correct patch. but after the patch. it's working.
And it's another issue with ethernet irq flag value
In clean Linus kernel has IRQF_TRIGGER_RISING. but in OMAP tree has IRQF_TRIGGER_HIGH on apollon.
As previous mentions. IRQF_TRIGGER_HIGH is not working.
Anyway, it's more stable than before.
Thank you,
Kyungmin Park
--
[1] http://marc.theaimsgroup.com/?l=linux-kernel&m=116576871105029&w=2
[-- Attachment #2: Type: text/plain, Size: 0 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2006-12-21 9:46 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-12-21 2:06 Realtime patch on OMAP2 Kyungmin Park
2006-12-21 9:46 ` Dirk Behme
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox